Determining which installed packages are from universe or multiverse
Submitted by specialj on Wed, 2008-04-16 05:49.
I was interested in trying to determine how many packages were installed from universe on the servers I manage. Luckily I came across a helpful discussion titled list installed Universe packages which suggested this command:
comm -12 <(apt-cache dumpavail | grep-dctrl -nsPackage -FSection universe/ |sort) <(dpkg --get-selections | awk '$2 == "install" { print $1 }' |sort)
To get the command to work I had to install the package dctrl-tools (for the grep-dctrl command):
sudo apt-get install dctrl-tools
After that it worked pretty well and can easily be adapted to search for other sections. It turns out that my servers use many packages from universe but none from restricted or multiverse, which is nice.
Trackback URL for this post:
http://hightechsorcery.com/trackback/105




Recent comments
5 days 1 hour ago
1 week 1 day ago
1 week 1 day ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 4 days ago
3 weeks 5 days ago
4 weeks 2 days ago
4 weeks 5 days ago