[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-cache show (only newest package)



Bill Moseley wrote:

This laptop was installed as a Woody, then it went through testing and now unstable. I've got sources for all in sources.list.

So, when I do $ apt-cache show foo I see more than one foo package. Can I use apt-cache to just show the most current package -- or really, the package that would get installed with apt-get install foo?


For example:

$ apt-cache policy gcc
gcc:
 Installed: 4:3.3.2-2
 Candidate: 4:3.3.2-2
 Version Table:
*** 4:3.3.2-2 0
       650 http://ftp.nl.debian.org unstable/main Packages
       500 http://mirror.ox.ac.uk testing/main Packages
       100 /var/lib/dpkg/status
    2:2.95.4-14 0
       500 http://mirror.cs.wisc.edu stable/main Packages

HTH, and hope this is what you're looking for.



Reply to: