How to list all installed software packages in terminal on Ubuntu

In Ubuntu or any Ubuntu linux based system you can list all installed application packages in your terminal command line application easily without any third party graphical user interface softwares. Lots of options are available in cli mode also. just try and use the below commands to list all softwares in Ubuntu and find the difference. If you know any other option, please mention in below comment form.

 

List Installed software packages [All Methods]

apt list --installed
dpkg --get-selections
apt-mark showmanual
dpkg -l |awk '/^[hi]i/{print $2}'
dpkg -l | grep '^ii '
apt-cache pkgnames
grep ' installed ' /var/log/dpkg.log /var/log/dpkg.log.1 | awk '{print $5}' | sort -u

Below command list all packages intentionally installed by apt commands.

(zcat $(ls -tr /var/log/apt/history.log*.gz); cat /var/log/apt/history.log) 2>/dev/null |
egrep '^(Start-Date:|Commandline:)' |
grep -v aptdaemon |
egrep '^Commandline:'

List the installed Snap Packages:

snap list

List the installed Flatpak Packages:

flatpak list
If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Also Read:  How to Open New Tab in Ubuntu GNOME Terminal Using Command Line

Leave a Reply