我们可以使用 找到包的来源apt show <package name>
,但是我们如何找到源提供的所有二进制文件或包的列表?
例如 apt show 将提供以下信息及更多信息
$ apt show linux-libc-dev
Package: linux-libc-dev
Version: 4.4.0-96.119
Priority: optional
Section: devel
Source: linux
Origin: Ubuntu
这里的源是“linux”。同样,我记得使用命令从源“linux”获取所有软件包,该命令提供了所有二进制文件和软件包。
答案1
您必须使用或showsrc
的子命令。 请参阅或apt
apt-cache
man apt-cache
在线的了解详情。
以下是我的 Ubuntu 16.04 LTS 的输出:
$ apt-cache showsrc linux Package: linux Binary: linux-source-4.4.0, linux-doc, linux-headers-4.4.0-21, linux-libc-dev, linux-tools-common, linux-tools-4.4.0-21, linux-cloud-tools-common, linux-cloud-tools-4.4.0-21, linux-image-4.4.0-21-generic, linux-image-extra-4.4.0-21-generic, linux-headers-4.4.0-21-generic, linux-image-4.4.0-21-generic-dbgsym, linux-tools-4.4.0-21-generic, linux-cloud-tools-4.4.0-21-generic, linux-udebs-generic, linux-image-4.4.0-21-generic-lpae, linux-image-extra-4.4.0-21-generic-lpae, linux-headers-4.4.0-21-generic-lpae, linux-image-4.4.0-21-generic-lpae-dbgsym, linux-tools-4.4.0-21-generic-lpae, linux-cloud-tools-4.4.0-21-generic-lpae, linux-udebs-generic-lpae, linux-image-4.4.0-21-lowlatency, linux-image-extra-4.4.0-21-lowlatency, linux-headers-4.4.0-21-lowlatency, linux-image-4.4.0-21-lowlatency-dbgsym, linux-tools-4.4.0-21-lowlatency, linux-cloud-tools-4.4.0-21-lowlatency, linux-udebs-lowlatency, linux-image-4.4.0-21-powerpc-e500mc, linux-image-extra-4.4.0-21-powerpc-e500mc, linux-headers-4.4.0-21-powerpc-e500mc, linux-image-4.4.0-21-powerpc-e500mc-dbgsym, linux-tools-4.4.0-21-powerpc-e500mc, linux-cloud-tools-4.4.0-21-powerpc-e500mc, linux-udebs-powerpc-e500mc, linux-image-4.4.0-21-powerpc-smp, linux-image-extra-4.4.0-21-powerpc-smp, linux-headers-4.4.0-21-powerpc-smp, linux-image-4.4.0-21-powerpc-smp-dbgsym, linux-tools-4.4.0-21-powerpc-smp, linux-cloud-tools-4.4.0-21-powerpc-smp, linux-udebs-powerpc-smp, linux-image-4.4.0-21-powerpc64-emb, linux-image-extra-4.4.0-21-powerpc64-emb, linux-headers-4.4.0-21-powerpc64-emb, linux-image-4.4.0-21-powerpc64-emb-dbgsym, linux-tools-4.4.0-21-powerpc64-emb, linux-cloud-tools-4.4.0-21-powerpc64-emb, linux-udebs-powerpc64-emb, linux-image-4.4.0-21-powerpc64-smp, linux-image-extra-4.4.0-21-powerpc64-smp, linux-headers-4.4.0-21-powerpc64-smp, linux-image-4.4.0-21-powerpc64-smp-dbgsym, linux-tools-4.4.0-21-powerpc64-smp, linux-cloud-tools-4.4.0-21-powerpc64-smp, linux-udebs-powerpc64-smp Version: 4.4.0-21.37 Priority: optional Section: devel ...