[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (solved on my own) Re: how to use dpkg to list some packages



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Serena Cantor wrote:
> aptitude search \!~i~sdoc only lists 4 packages.
> surely main of sarge has far more than that.

on my etch system it lists 876, as you asked this are the 'that can be
installed', ie. the ones that are available minus the ones that are
already installed on your system.

Just try

aptitude search ~sdoc

to get a list of all the packages that exist, installed or not.

> I've got many replies, none solved my question. Thanks anyway.
> 
> I'm java programmer, I'd rather write a program to parse a file in
> /var/lib/apt/lists
> to list desired packages.

Or write a gawk script to do the same.
Or study the man pages of dpkg or aptitude to find another solution.

HTH,
Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGQMvTC1NzPRl9qEURAj+yAJ9OLf+/AUK1aMCLeInrdvoVvO6cNwCeLjoJ
TLc3Qc3XlmYUh7LTY8k0Dso=
=6eKe
-----END PGP SIGNATURE-----



Reply to: