View Full Version : list installed Universe packages

December 3rd, 2004, 11:54 AM
Is there a way to have a list of installed packages which belongs to universe ? I remember I saw a very little script which could do that, but I don't know where.

December 3rd, 2004, 12:24 PM
you can create a custom filter in synaptic

check the box "installed" and include all universe sections

December 3rd, 2004, 02:01 PM
Ok, thank you. But as Synaptic is just a front end to other packages management tool, is it possible to do that with apt or dpkg ?

December 3rd, 2004, 02:07 PM
you could write a script to do that I think

December 3rd, 2004, 02:15 PM
I know I could write a script, but I quickly read man of dpkg, apt-get and apt-cache and still don't know how to do that. I didn't see any command which return the component of the repository (main, restricted, universe or multiverse).

Synaptic is great, but I still prefer command-line ](*,) .

December 3rd, 2004, 02:24 PM
I can't help you with that ... try google or apropos or wait for someone else who knows :)

December 3rd, 2004, 08:50 PM
I finally found my answer in this french page:

So to know which are the installed packages which belongs to universe, type the following command:

comm -12 <(apt-cache dumpavail | grep-dctrl -nsPackage -FSection universe/ |sort) <(dpkg --get-selections | awk '$2 == "install" { print $1 }' |sort)

You could replace universe by any another component of the repository.

December 4th, 2004, 01:23 AM
That's a long command :p