Visit Jeremy's Blog.
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, 04: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, 04:35 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

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

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
      --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 12 02-07-2017 11:41 PM
Showing last packages installed with dpkg exceed1 Linux - General 7 12-16-2009 04:14 AM
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 12:36 PM
How to list all installed packages that can be reconfigured with dpkg-reconfigure? Akhran Linux - Newbie 1 11-24-2005 08:25 PM
How to list all installed packages? bp12345 Debian 2 08-15-2005 09:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:46 AM.

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