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.

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 ]

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

Username:

Password:

[Register|Advanced]

 

Flattr

 

Current Poll

What do you use for configuration management?








( 525 votes ~ 7 comments )