ObjectiveThe objective of this article is to provide an Ubuntu user with information on how to list installed packages on Ubuntu 18.04 Bionic Beaver Linux
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand may be required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
InstructionsThere are several ways on how to list installed packages on Ubuntu 18.04 Linux. First, we will show how to list installed packages relevant to your graphical user interface (GUI).
After that we will see how to list installed packages using command line. Command line in this case is much more powerful tool to use as it will list all installed packages.
List installed packages using GUITo list installed packages on a Ubuntu 18.04 running a default graphical interface GNOME navigate to
Activitiesand search for term
List installed packages using command lineUsing command line will give user more precise results. There are several ways how to list installed packages on Ubuntu system. The first tool we are going to look at is
apt. The below
aptcommand will list all installed packages as well as its version number:
$ apt list --installedAlternative to the above command is the
dpkgcommand. The next command will list installed packages, including version number, architecture and short package description:
$ dpkg -l | grep ^iiThe following linux command will count all installed packages:
$ dpkg -l | grep ^ii | wc -l 495Note, if you are searching for a particular package name, then use
grepcommand to search for its name. For example let's search for a package
wgetto see whether it is installed:
$ dpkg -l | grep ^ii | grep -i wget ii wget 1.19.4-1ubuntu2 amd64 retrieves files from the webIf the above command does not produce any output it means that the
wgetpackage is not installed yet.