What's in your universe?

Matt Zimmerman mdz at canonical.com
Sat Sep 25 02:42:29 UTC 2004


On Sat, Sep 25, 2004 at 12:42:04PM +1000, Jeff Waugh wrote:

> On Sat, 2004-09-25 at 12:34 +1000, Jeff Waugh wrote:
> > I wrote a hacky little script last night to tell me what I had installed
> > from universe, so I knew which pieces I'd have to keep when it broke. ;)
> 
> ... I am not yet used to Evolution. Script attached. :-)

dpkg --get-selections will also include packages you once installed, but
have now removed.

Here's an alternative which handles that case:

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

-- 
 - mdz




More information about the ubuntu-users mailing list