How do I list all packages from unstable / experimental?

18

4

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.

enricoferrero

Posted 2013-05-31T10:03:07.480

Reputation: 589

1The easiest way I found so far relies on the apt-show-version package: apt-show-version | grep /unstable or apt-show-version | grep /experimental. – enricoferrero – 2013-05-31T11:08:03.000

Answers

16

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: Debian User Forums • View topic - [BASH] A script to check how mixed your system is.

debil

Posted 2013-05-31T10:03:07.480

Reputation: 186

6

Using aptitude you can run the following command:

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

toro2k

Posted 2013-05-31T10:03:07.480

Reputation: 496

I'm unable to adapt this to filter out packages coming from 'stable' as well, neither to only pick packages coming from 'testing'. I guess I'll never understand how aptitude (or APT for that matter) works. – alecov – 2019-02-23T04:27:14.680

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? – enricoferrero – 2013-05-31T17:05:38.090

Sorry, updated the answer, now should work properly. – toro2k – 2013-05-31T21:03:12.567

Yes, now it works! – enricoferrero – 2013-05-31T22:02:04.410