On Fri, 11 Jan 2002 15:08:49 -0800
Paul E Condon <[EMAIL PROTECTED]> wrote:
> How can I get a list of all the debian packages that are installed
> on my computer?

Many solutions have been suggested, here's another. It will end up
listing only the package names, nothing else. Useful for when you go to
the other machine and want to do 'apt-get install $(cat
package_list.txt)' :)

[ [EMAIL PROTECTED]: ~ ]$ dpkg --get-selections | grep install\$ | grep -v
deinstall | cut -f1

Or, to put it into a file(in this case, package_list.txt):

[ [EMAIL PROTECTED]: ~ ]$ dpkg --get-selections | grep install\$ | grep -v
deinstall | cut -f1 > package_list.txt

Enjoy. :)

--
 .--=====-=-=====-=========----------=====-----------=-=-----=.
/    David Barclay Harris            Aut agere, aut mori.      \
\        Clan Barclay              Either action, or death.    /
 `-------======-------------=-=-----=-===-=====-------=--=----'

Attachment: pgpbfPt1wdsKd.pgp
Description: PGP signature

Reply via email to