how to get a list of all installed packages from apt-get?

link|improve this question
possible duplicate of List of files installed from apt package – Dennis Williamson Mar 7 '11 at 23:42
@Dennis - I think there's a subtle difference, once is a list of files, one is a list of packages – Mark Henderson Mar 7 '11 at 23:55
feedback

3 Answers

up vote 3 down vote accepted

dpkg --get-selections will output a list. Bonus: you can input that list into dpkg --set-selections to copy those selections.

link|improve this answer
1  
There's also dpkg -l which will show you the status of every package on the system, the version and a description of the package. – Registered User Mar 8 '11 at 0:37
feedback

apt-get itself cannot do this, but you can use dpkg --list or aptitude search ~i to see a list of installed packages.

link|improve this answer
feedback

If you specifically care about packages installed via apt-get, rather than packages installed via any mechanism (e.g. apt-get, aptitude, dpkg, dselect), look in /var/log/apt/history.log.

link|improve this answer
dpkg --get-selections and dpkg -l will show the status of every package present, regardless of what utility was used to install it. – Registered User Mar 8 '11 at 0:40
Packages installed via aptitude also use that log. – Tshepang Feb 21 at 16:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.