Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-12-2010, 03:32 PM   #1
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 137
Blog Entries: 1

Rep: Reputation: 17
apt/dpkg List of all installed packages

Is there a way to have apt or dpkg print out a list of all the installed packages? Preferably in a format that I can simply add 'apt-get install' in front of.
Old 02-12-2010, 03:35 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Take a look at
dpkg --get-selections
Old 02-12-2010, 04:20 PM   #3
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,694

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
      --get-selections [package-name-pattern...]
              Get list of package selections, and write it to stdout. Without a pattern, packages
              marked with state purge will not be shown.

              Set  package selections using file read from stdin. This file should be in the for‐
              mat ’<package> <state>’, where state is one of install, hold, deinstall  or  purge.
              Blank lines and comment lines beginning with ’#’ are also permitted.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get dpkg error: files list file ... missing final newline PBSchmidt Debian 10 10-08-2014 09:57 AM
Showing last packages installed with dpkg exceed1 Linux - General 7 12-16-2009 03:14 AM
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
How to list all installed packages that can be reconfigured with dpkg-reconfigure? Akhran Linux - Newbie 1 11-24-2005 07:25 PM
How to list all installed packages? bp12345 Debian 2 08-15-2005 08:06 AM

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration