LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 02-12-2010, 04:32 PM   #1
jmoschetti45
Member
 
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 136
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
repo
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
Code:
dpkg --get-selections
 
Old 02-12-2010, 05:20 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Code:
      --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-selections
              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.
 
  


Reply


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 10:57 AM
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


All times are GMT -5. The time now is 01:04 PM.

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