LinuxQuestions.org
Help answer threads with 0 replies.
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 01-27-2007, 03:16 PM   #1
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Rep: Reputation: 15
List of packages


Is there a command in debian etch to show the list of installed packages?

I can't seem to find this command and it's driving me crazy.

It's like what windows has.

The add/remove programs to show everything currently installed.

Is there something like this in debian that shows everything that's installed?

Thanks
 
Old 01-27-2007, 03:30 PM   #2
vtel57
Member
 
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 857

Rep: Reputation: 88
The Synaptic Package Manager in Gnome will show you all installed apps on your Debian system. It's in the Debian Main Menu under --> Administration --> Synaptic, I think.

Luck!

~Eric
 
Old 01-27-2007, 08:48 PM   #3
gloomz
Member
 
Registered: Oct 2006
Posts: 137

Original Poster
Rep: Reputation: 15
I forgot to say that I'm using CMD line only.
 
Old 01-27-2007, 09:04 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
aptitude search ~i

That may only include packages installed by aptitude, so an "aptitude keep-all" might be a good idea.

Last edited by rickh; 01-27-2007 at 09:05 PM.
 
Old 01-27-2007, 09:31 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
dpkg --get-selections >> myselections.txt(you can use any name) will output a list of packages that you have installed to a text file.
 
Old 01-27-2007, 09:44 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
@craigevil:

I tried both methods. Interesting differences in the output.

Also, experimentation reveals that the output from aptitude is not limited to programs that were installed using it.

Last edited by rickh; 01-27-2007 at 10:23 PM.
 
Old 01-29-2007, 03:12 PM   #7
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Not sure about the aptitude list, but with the one dpkg outputs you can use apt to reinstall the list.

apt-get install $(</home/craig/myselections.txt)

Interesting that aptitude outputs the same packages even though I have only used aptitude maybe one time.
 
Old 02-02-2007, 02:32 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Here's another view with apt-show-versions

Code:
aptitude install apt-show-versions
apt-show-versions
Very good tool for knowing what you have from stable/unstable/testing


And here's another one:
Code:
dpkg -l

Last edited by nx5000; 02-02-2007 at 02:35 AM.
 
Old 02-02-2007, 04:07 AM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
apt-show-versions

g++-4.0 4.0.3-7 installed: No available version in archive
knet 0.5+0.6beta1-3 installed: No available version in archive
there are probably another 20 packages that show the same thing, some I understand because they are Kanotix packages and I no longer use the Kanotix repos.

kasablanca 0.4.0.2+cvs20051202-1 newer than version in archive how the heck is it newer?


weird there are quite a few packages that same the same thing. Neat that it shows everything else as uptodate
 
Old 02-02-2007, 09:22 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Probably that it considers 0.4.0.2+cvs20051202-1 superior to 0.4.0.2-2 which is the last version.
(+cvs20051202-1 > 2)
dunno

edit:
what gives
apt-show-versions -a kasablanca

Last edited by nx5000; 02-02-2007 at 09:29 AM.
 
Old 02-02-2007, 09:34 AM   #11
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by craigevil


weird there are quite a few packages that same the same thing. Neat that it shows everything else as uptodate
If you have installed them from experimental or by source then they have a bigger number than what is in your archive (in case you now have removed experimental from your sources.list)
So this is normal IMO
 
Old 02-02-2007, 11:06 AM   #12
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Nope. Nothing from experimental or from source, pretty much everything is from Sid other than the few packages from Kanotix/Sidux.

apt-show-versions -a kasablanca
kasablanca 0.4.0.2+cvs20051202-1 install ok installed
kasablanca 0.4.0.2-2 unstable
kasablanca 0.4.0.2+cvs20051202-1 newer than version in archive

The few packages that show "No available version in archive" all show "Now" when I take a look at them in Synaptic, and all show up in Installed (local or obsolete) , so I am thinking most of them are left over Kanotix packages, other than gYachi, Frostwire and Opera which are .deb packages that I installed. SO its all good.
 
  


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 all installed packages? bp12345 Debian 2 08-15-2005 08:06 AM
get list of latest list of packages bobwall Linux - Distributions 1 11-30-2004 03:48 PM
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 12:55 PM.

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