[Linux-disciples] Which version do I have?

Adam Kessel linux-disciples@bostoncoop.net
Tue, 29 Jul 2003 23:06:08 -0400


I can't think of a very direct way to do this, but you can use
apt-show-versions (from the eponymously named package) to get the version
number of any particular package that are available from your apt
sources.list, e.g., assuming you have woody, testing, and unstable in
your sources: 

~>apt-show-versions -a vim
vim     1:6.1-474+2     install ok installed
vim     6.1.018-1       stable
vim     1:6.1-320+1     testing
vim     1:6.1-474+2     unstable
vim/unstable uptodate 1:6.1-474+2

Based on this, you can see the version you have installed, as well as
the versions that exist in stable, testing, and unstable.

Actually, if you just do

~>apt-show-versions vim

you get

vim/unstable uptodate 1:6.1-474+2

Which tells you that vim is from unstable.

One problem with apt-show-versions, however, is that it is deathly slow.

You can also try

~>apt-show-versions -p

which will show you the installed version for all packages.


On Tue, Jul 29, 2003 at 07:04:14PM -0400, Stephen R Laniel wrote:
> Dearest Linux folks,
> 
> I want to figure out whether the version of a particular Debian
> package on my machine came from stable, unstable, or testing. How does
> one do this?
> 
> Spanks a lot,
> Steve
> 
> -- 
> ``Virginia Woolf: I'll take your second-best cognac and unadulterated
>   experience.
>   Bartender: We don't have that. This is a bar.
>   Virginia Woolf: Patriarchy! (drowns)''
>  -http://www.iowablog.com/archives/2003_05.html#000190
> 
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples@bostoncoop.net
> http://bostoncoop.net/mailman/listinfo/linux-disciples