How to list all installed packages in Ubuntu?

by
Share this Article: Facebook0Google+0Twitter2LinkedIn0Reddit0StumbleUpon0

Q: How to list all installed packages in Ubuntu?terminal

A: There are many ways to list installed packages in Ubuntu, one of them are  the two following commands :

$sudo sed -ne '/^Package: (.*)/{s//1/;h;};/^Installed-Size: (.*)/{s//1/;G;s/n/ /;p;}' /var/lib/dpkg/status | sort -rn

 

or


$sudo  dpkg-query -Wf  '${Installed-Size}t${Package}n' | sort -n

 

Both commands tested and are working.

 

{module user9-footer|none}

For questions please refer to our Q/A forum at : http://ask.unixmen.com/


Share this Article: Facebook0Google+0Twitter2LinkedIn0Reddit0StumbleUpon0