Question: List of installed packages in mixed environment

Posted by gna on Thu 3 Mar 2005 at 22:57

I unfortunately use on my system a mixture of Woody/Sarge packages. Now i need to have a list of all packages, where i can see which package belogs to Woody and which to Sarge.

Any suggestions how i could get this list?



Posted by dom (163.1.xx.xx) on Fri 4 Mar 2005 at 12:08
I couldn't find any good solution to this, so instead I wrote a hacky inefficient shell script.

First you'd want to get a list of which packages are neither woody nor sarge, so set IGNOREPATTERN to

(yourmirror sarge|yourmirror woody|

Then set IGNOREPATTERN to each in turn of

(yourmirror sarge| sarge)

(yourmirror woody| woody)

and so on.

You may need to replace "sarge" and "woody" with "testing" and "stable" if that's what your sources.list refers to.

I'd be interested in a better solution...

[ Parent | Reply to this comment ]

Posted by gna (212.40.xx.xx) on Fri 4 Mar 2005 at 15:44
[ View Weblogs ]
Thank you all.

apt-show-versions did what i wanted.

[ Parent | Reply to this comment ]

Posted by suspended user UP (24.148.xx.xx) on Tue 22 Mar 2005 at 08:01
this apt-show-versions sure is a good command to know

I used it to clean up packages installed but no longer in the dist. (with my current sources)

[ Parent | Reply to this comment ]

Sign In







Current Poll

Will you stick to systemd as the default in Debian?

( 25 votes ~ 1 comments )