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

Re: list all packages that are installed



On Fri, 11 Jan 2002 15:08:49 -0800
Paul E Condon <pecondon@quiknet.com> 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)' :)

[ david@willow: ~ ]$ dpkg --get-selections | grep install\$ | grep -v
deinstall | cut -f1

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

[ david@willow: ~ ]$ 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: pgpV8lwN2nVjp.pgp
Description: PGP signature


Reply to: