deps 添加到虚拟包中:
apk add --no-cache --virtual .build-deps gcc make libc-dev
我怎样才能列出它们?
apk list
给出垃圾。
apk list .build-deps
WARNING: Ignoring APKINDEX.00740ba1.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.d8b2a6f4.tar.gz: No such file or directory
.build-deps-20191012.021030 noarch {.build-deps} () [installed]
没有太多帮助apk info
apk info .build-deps
WARNING: Ignoring APKINDEX.00740ba1.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.d8b2a6f4.tar.gz: No such file or directory
.build-deps-20191012.021030 description:
virtual meta package
.build-deps-20191012.021030 webpage:
.build-deps-20191012.021030 installed size:
0
答案1
尝试这个命令:
apk info --depends .build-deps
要查看与该虚拟包相关的所有信息,可以使用以下命令:
apk info --all .build-deps