Linux (Debian/Ubuntu): Finding out whether a package is installed

Aug 13, 2021 13:36 · 47 words · 1 minute read

When you execute dpkg (the Debian Package Manager) with the --status flag (alternative: -s) & a package name, it outputs information about the package ⇒ it will tell you whether a package is installed or not.

Example:

1
dpkg --status rsync

See also: dpkg manual on explainshell.com