How to list all installed packages in Ubuntu?

by

Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUponShare on VKBuffer this page

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}