View Full Version : list installed Universe packages
M@t
December 3rd, 2004, 06: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.
ubuntu_demon
December 3rd, 2004, 07:24 AM
you can create a custom filter in synaptic
check the box "installed" and include all universe sections
M@t
December 3rd, 2004, 09:01 AM
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 ?
ubuntu_demon
December 3rd, 2004, 09:07 AM
you could write a script to do that I think
M@t
December 3rd, 2004, 09:15 AM
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 ](*,) .
ubuntu_demon
December 3rd, 2004, 09:24 AM
I can't help you with that ... try google or apropos or wait for someone else who knows :)
M@t
December 3rd, 2004, 03:50 PM
I finally found my answer in this french page: http://wiki.frimouvy.org/FaqUbuntuDebian.
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.
ubuntu_demon
December 3rd, 2004, 08:23 PM
That's a long command :p
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.