On Thu, Jan 29, 2004 at 07:58:36PM +0900, Nick Hastings wrote:
> Careful, dpkg --get-selections doesn't always list only installed
> packages
> Try:
>
> dpkg --get-selections | grep -w install | cut -f1
To be pedantic, this will fail if a package has the string "install" in
its name and is in a non-installed state. Also, this will miss held
packages. Better would be
dpkg --get-selections | awk '$2 ~ "install|hold" {print $1}'
--
Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
Attachment:
signature.asc
Description: Digital signature