Debian
apt-cache policy 輸出中版本後面的數字是多少?
這是的輸出
apt-cache policy firefox
firefox: Installed: 26.0~linuxmint1+lmde Candidate: 26.0~linuxmint1+lmde Version table: *** 26.0~linuxmint1+lmde 0 500 http://packages.linuxmint.com/ debian/import amd64 Packages 100 /var/lib/dpkg/status
版本顯示為
26.0~linuxmint1+lmde
,0
後面是什麼?我嘗試過各種軟體包,並且0
在軟體包版本之後總是有一個。據推測,這也可以採用其他值,但我還沒有看到。我通讀了
man
和的info
頁面,apt-cache
但找不到任何相關的內容。唯一的解釋policy
是:policy [pkg...] policy is meant to help debug issues relating to the preferences file. With no arguments it will print out the priorities of each source. Otherwise it prints out detailed information about the priority selection of the named package.
它是
<minimum-priority-to-consider>
:一般輸出是:
package-name: Installed: <installed-version> Candidate: <version-installed-when-doing-apt-get-upgrade> Package-Pin: <version-of-Pin-in-etc-apt-preferences> Version table: *** <some-version> <minimum-priority-to-consider> <priority-of-this-instance> <repository1> <priority-of-this-instance> <repository2> *** <some-other-version> <minimum-priority-to-consider> <priority-of-this-instance> <repository3> <priority-of-this-instance> <repository4>
因此,在上面的輸出中,包
firefox
的26.0~linuxmint1+lmde
最低優先級為0
,並且可能由兩個優先級分別為500
和的儲存庫提供100
。