Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running a Debian testing system with some packages installed from unstable or experimental, using apt pinning.

How can I list all packages that come from unstable or experimental? I'd like to use apt, but I have aptitude and synaptic installed as well.

share|improve this question
1  
The easiest way I found so far relies on the apt-show-version package: apt-show-version | grep /unstable or apt-show-version | grep /experimental. –  Enrico May 31 '13 at 11:08

2 Answers 2

up vote 2 down vote accepted

One option is to install apt-show-versions. For example, to find packages installed from unstable:

$ apt-show-versions | grep unstable

Also, the following script might be of interest: http://www.debianuserforums.org/viewtopic.php?f=8&t=1512

share|improve this answer

Using aptitude you can do:

$ aptitude versions \
> '~VCURRENT (~Aunstable|~Aexperimental) !~Atesting' --group-by=none

This will list all packages whose currently installed version (~VCURRENT) comes from the unstable or experimental archives (~A) and are not present in the testing archive (!~A). The --group-by=none option serves to produce a more terse output.

share|improve this answer
    
For some reason, that doesn't work for me. It gives me a huge list of packages which are most definitely not from unstable or experimental. The apt-show-version method above gives me the correct output. Can somebody else confirm? –  Enrico May 31 '13 at 17:05
    
Sorry, updated the answer, now should work properly. –  toro2k May 31 '13 at 21:03
    
Yes, now it works! –  Enrico May 31 '13 at 22:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.