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?
apt-show-versions did what i wanted.
[ Parent | Reply to this comment ]
I used it to clean up packages installed but no longer in the dist. (with my current sources)
[ Parent | Reply to this comment ]
[ Send Message ]
http://www.larted.org.uk/~dom/computing/code/policy-all.sh
First you'd want to get a list of which packages are neither woody nor sarge, so set IGNOREPATTERN to
(yourmirror sarge|yourmirror woody|security.debian.org)
Then set IGNOREPATTERN to each in turn of
(yourmirror sarge|security.debian.org sarge)
(yourmirror woody|security.debian.org 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 ]