dpkg -l
最近的 debian Bullseye (v11.3) 机器上的(修剪)输出:
SE Name Version Arch Description
ii bind9-host 1:9.16.27-1~deb11u1 amd64 DNS Lookup Utility
ii bind9-libs:amd64 1:9.16.27-1~deb11u1 amd64 Shared Libraries used by BIND 9
^^^^^
问题:为什么bind9-libs 包的名称字段显示架构/abi,而bind9-host 的名称字段不显示架构/abi?
FWIW:
$ dpkg --print-architecture
amd64
$ grep -A6 "Package: bind9-host" /var/lib/dpkg/status
Package: bind9-host
Status: install ok installed
Priority: standard
Section: net
Installed-Size: 376
Maintainer: Debian DNS Team <[email protected]>
Architecture: amd64
$ grep -A6 "Package: bind9-libs" /var/lib/dpkg/status
Package: bind9-libs
Status: install ok installed
Priority: standard
Section: libs
Installed-Size: 3734
Maintainer: Debian DNS Team <[email protected]>
Architecture: amd64
再添加一行将显示相关字段:
bind9-libs
被标记为“Multi-Arch:same”,这意味着它可以为多个架构(例如amd64
和i386
)共同安装。对于具有此属性dpkg
的包,显示体系结构以及包名称。bind9-hosts
没有这样标记,因此它不是可共同安装的,并且只能存在于一种架构中。