Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
$ apt-cache policy pal
pal:
  Installed: 0.4.3-8
  Candidate: 0.4.3-8
  Version table:
 *** 0.4.3-8 0
        500 http://in.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages
        100 /var/lib/dpkg/status

In the above output what is the meaning of 500 & 100.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Guiding me through the information obtained in this Debian HOWTO article I can say that it represents the priority of the repository package. In the previous link you can see an example.

While the number representing the priority is bigger, the priority for this repo is bigger.

After the "Version table:" line you have this format:

*** <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>

So in your output, for the version 0.4.3-8, the minimum priority to consider is 0 (zero). And the first mentioned repository has a big priority (500 is the greatest number there)

A version pin does NOT set a priority; it kicks in when any version exists anywhere that matches the version initializing the version that is going to be installed or upgraded, and then replacing that version with any version anywhere that has a larger priority than the requested version Pin-Priority, if any.

share|improve this answer
    
ok thank you and may I know how it will be utilized. –  AgentCool Apr 18 '13 at 1:32
    
I added that information, it is mentioned in the link. –  Lucio Apr 18 '13 at 16:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.