How to list all software packages installed in Ubuntu terminal

On Ubuntu or Ubuntu Linux-based systems, you can easily list all application packages installed in a command line application in Terminal without third-party graphical user interface software. Many options are also available in cli mode. Try the following command to list all the software in Ubuntu and find out the differences. If you have any other questions, please let us know in the comment form below.

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

The following command is a list of all packages intentionally installed by the apt command.

(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 installed snap packages.

snap list

List the installed Flatpak packages.

flatpak list

If you like this article, please subscribe to us Youtube channel.. You can also stay connected with us twitter And Facebook.

Recommended document: LFTP Command Line File Transfer Program-How to install LFTP on Ubuntu
It’s a sequel.
.

Sidebar