PackageManagement

Generate a list of installed packages

Price range: €15.31 through €16.22

. Debian-Based Systems (e.g., Ubuntu, Debian):
Use the dpkg command:

bash
dpkg --get-selections
  • Description: Lists all installed packages.
  • Optional: Pipe the output to grep to filter results, e.g., dpkg --get-selections | grep package-name.

Alternatively, use the apt command:

bash
apt list --installed
  • Description: Displays a list of installed packages with version information.

2. Red Hat-Based Systems (e.g., CentOS, Fedora, RHEL):
Use the rpm command:

bash
rpm -qa
  • Description: Lists all installed packages.

Alternatively, use the dnf or yum package managers:

bash
dnf list installed

or

bash
yum list installed
  • Description: Outputs installed packages with version and repository details.

3. Arch-Based Systems (e.g., Arch Linux, Manjaro):
Use the pacman command:

bash
pacman -Q
  • Description: Lists all installed packages with their version numbers.

4. SUSE-Based Systems (e.g., openSUSE):
Use the zypper command:

bash
zypper se --installed-only
  • Description: Lists installed packages along with their version details.

5. Generic Package Manager (Flatpak):
If you are using Flatpak, list installed packages with:

bash
flatpak list

Tips for Usage

  • Redirect output to a file for analysis:
    bash
    dpkg --get-selections > installed_packages.txt
  • Combine with grep for targeted searches:
    bash
    rpm -qa | grep package-name
Select options This product has multiple variants. The options may be chosen on the product page