On Dec 8, 2007 6:38 PM, markw <[EMAIL PROTECTED]> wrote: > John H. Robinson, IV wrote: > > $ grep -h -E '^(Package|Description): ' /var/lib/apt/lists/*Packages|perl > > -ne '/^P\S+: (.*)/ and $p=$1;/^D\S+: (.*)/ and print "$p: $1\n"' > > apt-cache search . ??
I like the output better from 'aptitude search .', but it's basically the same. Aptitude's search function formats the columns more cleanly; plus, it includes a column that describes the installation state of each package in the list (p=no trace exists, c=uninstalled but config files remain, i=installed, etc.). In any case, both APT commands will give lists of everything in the repositories, not just what's currently installed. Jim's earlier mention of 'dpkg -l [pattern]' is the way to list just what's installed. -- Brad Beyenhof http://augmentedfourth.com Silence will save me from being wrong (and foolish), but it will also deprive me of the possibility of being right. ~ Igor Stravinsky -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
