LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-10-2011, 04:30 AM   #1
mahu_mahu
Member
 
Registered: Dec 2007
Location: Japan
Distribution: Debian
Posts: 42

Rep: Reputation: 3
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?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-10-2011, 07:16 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Quote:
Originally Posted by mahu_mahu View Post
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
 
2 members found this post helpful.
Old 05-10-2011, 06:00 PM   #3
mahu_mahu
Member
 
Registered: Dec 2007
Location: Japan
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: 3
Thank you so much , andrewthomas!!
I'll read the link deeply.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
some incorrect output from "apt-cache unmet" kevinbenko Debian 2 05-18-2016 08:25 AM
setting bigphysarea cache policy yannickp Linux - General 0 12-11-2009 10:12 AM
How to prevent apt from deleting packages in /var/cache/apt/archives ? abc.linux Debian 11 11-07-2009 11:46 AM
I bricked my NAS? :( aptitude, apt-get, apt-cache segfaults immediately omegaworks Linux - Server 5 11-07-2009 08:21 AM
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration