To see installed packages in Linux, the command depends on which package manager your system uses. Here’s a quick guide based on common distributions:
🟩 Ubuntu / Debian (APT-based)
dpkg -l➡️ List all installed packages.
Or to search for a specific package:
dpkg -l | grep <package-name>You can also use:
apt list --installed
🟥 Red Hat / CentOS / Rocky / AlmaLinux (YUM or DNF-based)
dnf list installedOr for older systems:
yum list installed
🟦 Arch / Manjaro (Pacman)
pacman -Q➡️ Shows all installed packages.
Or:
pacman -Qs <package-name>
🟨 OpenSUSE (Zypper)
zypper se --installed-only
🛠️ Flatpak or Snap packages (if used)
flatpak list snap list