On Wed, 2004-10-27 at 16:20 -0500, Hugo Vanwoerkom wrote: > Jim Hall wrote: > > On Sarge, is there a way to list every installed package? I don't think > > I need things like libs, just the package names. > > I've said this before, but dpkg -l gives you everything that is > installed, including the libs. > > The only way of knowing "what you installed" is by keeping a list > yourself. E.g. apt-get install x-window-system gets you tons of things, > but all you installed was x-window-system.
dpkg --get-selections | tr "\t" " " | cut -d\ -f1 | grep -v lib | wc -l This should work as a rough tool for the job. The "grep -v lib" probably tosses some non-lib packages, but should suffice for most uses. -- Stephen Touset <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part