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.
|
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 |
Thanks this works.
|
All times are GMT -5. The time now is 04:55 AM. |