LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   List number of packages available / installed (https://www.linuxquestions.org/questions/debian-26/list-number-of-packages-available-installed-869202/)

replica9000 03-17-2011 11:11 AM

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.

pljvaldez 03-17-2011 11:24 AM

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

replica9000 03-17-2011 12:17 PM

Thanks this works.


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