LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-12-2006, 01:45 PM   #1
scuzzo84
Member
 
Registered: Mar 2005
Location: maryland
Distribution: NetBSD
Posts: 60

Rep: Reputation: 15
how to list packages installed?


How do I list all the packages I have installed?
 
Old 01-12-2006, 01:54 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,020

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
dpkg --list
 
Old 01-12-2006, 02:01 PM   #3
scuzzo84
Member
 
Registered: Mar 2005
Location: maryland
Distribution: NetBSD
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by haertig
dpkg --list
you did it haertig!
 
Old 01-13-2006, 06:33 AM   #4
RanDrake10
Member
 
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
The package apt-show-version also works
 
Old 01-13-2006, 07:08 AM   #5
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 31
You could also use Synaptic.

Also, you could view the raw package list files:
Code:
$ cd /var/lib/dpkg/info/
$ *.list | less
a2ps.list
aalib-bin.list
aalib1.list
acroread-debian-files.list
acroread.list
adduser.list
afio.list
aiksaurus.list
alien.list
alsa-oss.list
alsaconf.list
amor.list
amule-utils.list
amule.list
apg.list
...
Helpful Hints:
By checking the date on a package's package.list file, you can tell when it was installed/upgraded. Also, by actually looking _in_ a given package.list file, you can see all the files that were installed by that package.

Last edited by Sepero; 01-13-2006 at 07:12 AM.
 
Old 01-13-2006, 11:14 AM   #6
scuzzo84
Member
 
Registered: Mar 2005
Location: maryland
Distribution: NetBSD
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by RanDrake10
The package apt-show-version also works

debian:/home/hkhalid# apt-get install apt-show-version
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package apt-show-version
debian:/home/hkhalid#
 
Old 01-13-2006, 01:55 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally Posted by scuzzo84
debian:/home/hkhalid# apt-get install apt-show-version
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package apt-show-version
debian:/home/hkhalid#
It is apt-show-versions.

Code:
>$ apt-cache search apt show version
apt-listchanges - Display change history from .deb archives
apt-show-source - Shows source-package information
apt-show-versions - lists available package versions with distribution
cmucl-source - The CMUCL lisp sources
debian-goodies - Small toolbox-style utilities for Debian systems
sg-utils - utilities for working with generic SCSI devices
sg3-utils - Utilities for working with generic SCSI devices
onlisp-pdf - PDF version of book on Common Lisp programming techniques
onlisp-ps - Postscript version of book on Common Lisp programming techniques
 
Old 01-13-2006, 02:10 PM   #8
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
LOL ...

Or:
Code:
dpkg --get-selections | grep install
 
Old 01-17-2006, 05:17 PM   #9
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by saman007uk
LOL ...

Or:
Code:
dpkg --get-selections | grep install
That's kind of sloppy, because it will not print packages on "hold". Also, it will incorrectly print packages that have been removed, but have "install" in the package name.

Other than the negative aspects, I do have to give a few points for creativity.
 
  


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
list installed debian packages Fernandoch Debian 4 07-07-2005 05:16 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:48 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