Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-15-2005, 04:40 AM   #1
Registered: Nov 2005
Posts: 80

Rep: Reputation: 15
command for getting all the installed packages

Hi all,

I have tried for getting all the installed packeges in the system,by using dpkg -l "*"|grep '^i'|more.It is working fine.

But when i tried for getting the description of all the packages...( dpkg --print-avail "all the packages")(using for loop i will give the package) in between the output some of the packages giving messages like "<package name> not available" .

So now what i want is i need a command which gives only installed packages in the system.

can you please help me.
Thanks in advance,
Old 12-15-2005, 04:45 AM   #2
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
less /var/lib/dpkg/status
That will display all the installed packages on your system (although it may take a _very_ long time to scroll through them all...)

Old 12-15-2005, 06:52 AM   #3
Senior Member
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
dpkg-query -W --showformat='${Installed-Size} ${Package}\n'
dpkg-query -W --showformat='${Package}\n'|less

Those are what I usually use. What kind of for loop are you using?


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
How to tell what packages are installed? KMorley Linux - Newbie 2 02-23-2005 03:16 PM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 02:17 AM
where are packages installed? InTheWired Linux - General 10 04-08-2004 05:46 AM
Were are my packages being installed? sramelyk Linux - Software 3 02-22-2004 12:47 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:24 AM.

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