LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-17-2011, 11:11 AM   #1
replica9000
Member
 
Registered: Jul 2006
Location: Quahog, Rhode Island
Distribution: Debian 'Sid', FreeBSD, Android
Posts: 663
Blog Entries: 2

Rep: Reputation: 115Reputation: 115
List number of packages available / installed


In Synaptic manager, the status bar shows the number of packages installed, and the number available in the repositories. I'm looking to get these numbers from the command line.
 
Old 03-17-2011, 11:24 AM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Well, I know apt-cache stats will get the number available. Maybe something like this for the number installed:
Code:
dpkg --get-selections | awk '$2=="install" {print $1}' | wc -l
 
Old 03-17-2011, 12:17 PM   #3
replica9000
Member
 
Registered: Jul 2006
Location: Quahog, Rhode Island
Distribution: Debian 'Sid', FreeBSD, Android
Posts: 663
Blog Entries: 2

Original Poster
Rep: Reputation: 115Reputation: 115
Thanks this works.
 
  


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
Is there a list of all installed packages? AgentD Slackware 6 05-28-2008 01:36 AM
List of installed packages? parent's_basement Debian 6 04-29-2008 05:04 PM
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


All times are GMT -5. The time now is 03:13 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