LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-17-2011, 11:11 AM   #1
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,129
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
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
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,129

Original Poster
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Thanks this works.
 
  


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
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

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

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