LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-25-2006, 08:06 AM   #1
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Rep: Reputation: 15
Question [aptitude] How to get a list of all installed packages?


Hello,

I use aptitude for package management. Having already browsed through the forum, google, and aptitude manual, I haven't found a way to list all packages that are installed in the system on purpose (and not been dragged in automatically). I know aptitude maintains a "markauto" list but haven't been able to found out where.

I would use such a list to eg. create a mirror system in terms of intalled packages should the current one fails.

Of couse I could use dpkg --list to see all installed packages, but then I wouldn't remember what was installed automatically and what on purpose.

Any ideas please? Thanks in advance.

/coralsaw

Last edited by coralsaw; 06-25-2006 at 08:07 AM.
 
Old 06-25-2006, 11:14 AM   #2
DeanLinkous
Member
 
Registered: Jun 2006
Posts: 111

Rep: Reputation: 15
create a mirror of installed packages? use apt-move
maybe?
 
Old 06-26-2006, 08:47 AM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
so you don't want to use the old standby which would create a list of everything on the system so you could easily setup another machine with all the same packages using the set-selectios switch.. ?

Backup installed package list on current machine
dpkg --get-selections > selections.txt

move selections.txt to the new machine Set package list on new machine and install packages
dpkg --set-selections < selections.txt
apt-get update
apt-get upgrade


If that's not what you are looking to do I'm a bit confused on what your actual goal is..

Wether a package was installed by the system or you isn't all that important..
if you want the systems to be identical you will still need all the installed packages.
 
Old 06-27-2006, 02:33 AM   #4
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you both for your replies.

It's important to me to know what packages I have selected and not what the system dragged in as dependencies, because perhaps dependencies will change in the future while those obsolete packages are left behind.

This is, IMO, why aptitude is better than apt-get, because it remembers markauto/unmarkauto selections. I know the information is there, I just don't know how to get it out.

Or perhaps I'm confused?

Thanks again, appreciate any further ideas.

/coralsaw
 
Old 06-27-2006, 12:30 PM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Code:
aptitude search '~i'
The above command will list all your installed packages and the automatically installed ones will be marked with A.

For additional info, check out "aptitude user's manual" (especially the section "Search Patterns"):
http://people.debian.org/~dburrows/a.../en/index.html
 
Old 06-30-2006, 08:05 PM   #6
coralsaw
Member
 
Registered: Dec 2005
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you Dead Parrot! Exactly what I was looking for.

/coralsaw
 
  


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
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 packages installed? scuzzo84 Debian 8 01-17-2006 05:17 PM
How to list all installed packages? bp12345 Debian 2 08-15-2005 08:06 AM
list of installed packages jeff1500 Slackware 3 03-22-2004 04:52 PM
List all installed Packages? mikeshn Linux - General 1 12-02-2003 10:31 PM


All times are GMT -5. The time now is 07:03 AM.

Main Menu
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