LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Output of apt-cache policy (https://www.linuxquestions.org/questions/debian-26/output-of-apt-cache-policy-879793/)

mahu_mahu 05-10-2011 04:30 AM

Output of apt-cache policy
 
Hi all.
I'm using Debian Squeeze.

When I invoke apt-cache policy , for example , apt-cache policy zlib1g,
I get the output like
Code:

zlib1g:
  Installed: 1:1.2.3.4.dfsg-3
  Candidate: 1:1.2.3.4.dfsg-3
  Version table:
 *** 1:1.2.3.4.dfsg-3 0
        500 http://cdn.debian.or.jp/debian/ squeeze/main i386 Packages
        100 /var/lib/dpkg/status

.
And below the line "Version table:" , there is installed package version.
I assume 1:1.2.3.4.dfsg-3 is version("epoch"+"upstream version"+"debian revision"), but what does the next "0" means?
Could someone let me know pls?

andrewthomas 05-10-2011 07:16 AM

Quote:

Originally Posted by mahu_mahu (Post 4351859)
Hi all.
I'm using Debian Squeeze.

When I invoke apt-cache policy , for example , apt-cache policy zlib1g,
I get the output like
Code:

zlib1g:
  Installed: 1:1.2.3.4.dfsg-3
  Candidate: 1:1.2.3.4.dfsg-3
  Version table:
 *** 1:1.2.3.4.dfsg-3 0
        500 http://cdn.debian.or.jp/debian/ squeeze/main i386 Packages
        100 /var/lib/dpkg/status

.
And below the line "Version table:" , there is installed package version.
I assume 1:1.2.3.4.dfsg-3 is version("epoch"+"upstream version"+"debian revision"), but what does the next "0" means?
Could someone let me know pls?

The debian wiki on AptPreferences ( http://wiki.debian.org/AptPreferences ) is quite unclear on this subject, but the references section has a link that explains it a bit more

http://www.xs4all.nl/~carlo17/howto/debian.html#errata

Quote:

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>
It would be the <minimum-priority-to-consider> to be a candidate for installation

mahu_mahu 05-10-2011 06:00 PM

Thank you so much , andrewthomas!!
I'll read the link deeply.


All times are GMT -5. The time now is 02:02 AM.