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

Re: Getting a list of installed packages



On Tue, 2005-12-27 at 12:53, J Merritt wrote:
> Is there a way to get a list of installed packages in Debian,
> preferably from the command line and preferably in a text file?

dpkg-query --show --showformat='${STATUS} ${PACKAGE} ${VERSION}
${ARCHITECTURE}\n'

(All on one line.)  You can write the output of this to a text file. 
You can drop some of the fields if you don't need them.

--Mike Bird



Reply to: