apt-cache policy
リポジトリやパッケージの優先度(pin値)を表示する
root@hostname:/home/shimizu# apt-cache policy
パッケージファイル:
100 /var/lib/dpkg/status
release a=now
500 http://ftp.jp.debian.org/debian/ jessie-updates/non-free Translation-en
...
root@hostname:/home/shimizu# apt-cache policy nginx-extras
nginx-extras:
インストールされているバージョン: 1.6.2-5
候補: 1.6.2-5
バージョンテーブル:
*** 1.6.2-5 0
500 http://ftp.jp.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
apt-file
特定のファイルがどのaptのパッケージに含まれているかを調べる
root@hostname:/home/shimizu# aptitude install apt-file
以下の新規パッケージがインストールされます:
apt-file libconfig-file-perl{a} liblist-moreutils-perl{a} libregexp-assemble-perl{a}
...
root@hostname:/home/shimizu# apt-file update
...
root@hostname:/home/shimizu# apt-file search ntpd.conf
logwatch: /usr/share/logwatch/default.conf/services/xntpd.conf
openntpd: /etc/openntpd/ntpd.conf
openntpd: /usr/share/man/man5/ntpd.conf.5.gz