Debian

apt-cache policy 輸出中版本後面的數字是多少?

  • February 2, 2014

這是的輸出 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+lmde0後面是什麼?我嘗試過各種軟體包,並且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>

因此,在上面的輸出中,包firefox26.0~linuxmint1+lmde最低優先級為0,並且可能由兩個優先級分別為500和的儲存庫提供100


這個 debian 勘誤部分,通過linuxquestions.orgaskubuntu

引用自:https://unix.stackexchange.com/questions/112184