LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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: 33
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: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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: 364

Rep: Reputation: 33
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: 33
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:51 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
Open Source Consulting | Domain Registration