Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|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

3 Answers 3

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.

share|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

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

share|improve this answer

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.

share|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 '12 at 16:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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