List Installed Packages on CentOS

How to List Installed Packages on CentOS

Knowing the list of installed packages on your CentOS system is essential for various administrative tasks, such as troubleshooting, managing dependencies, or system maintenance. In this detailed guide, we will walk you through the process of listing installed packages on CentOS using various methods and commands.

By following our step-by-step instructions and code examples, you’ll be able to obtain a comprehensive list of installed packages on your CentOS system effortlessly.

Table of Contents:

  1. Prerequisites
  2. Using RPM Package Manager
  3. Using YUM Package Manager
  4. Using DNF Package Manager
  5. Additional Tools for Listing Packages
  6. Additional Resources and References

Step-by-Step Guide:

  1. Prerequisites:
    • Ensure you have a CentOS system with administrative privileges.
    • Familiarize yourself with the command line interface.
  2. Using RPM Package Manager:
    • List all installed packages: rpm -qa
    • Save the list to a file: rpm -qa > installed_packages.txt
    • Filter packages based on specific criteria: rpm -qa | grep <keyword>
  3. Using YUM Package Manager:
    • List installed packages with YUM: yum list installed
    • Save the list to a file: yum list installed > installed_packages.txt
    • Filter packages based on specific criteria: yum list installed <package-name>
  4. Using DNF Package Manager:
    • List installed packages with DNF: dnf list installed
    • Save the list to a file: dnf list installed > installed_packages.txt
    • Filter packages based on specific criteria: dnf list installed <package-name>
  5. Additional Tools for Listing Packages:
    • Use repoquery command: repoquery --installed
    • Utilize dnf repoquery command: dnf repoquery --installed
    • Explore graphical package managers, such as GNOME Software or PackageKit.
  6. Additional Resources and References:
    • CentOS Documentation: link
    • RPM Package Manager: link
    • YUM Package Manager: link
    • DNF Package Manager: link

Conclusion: By following this comprehensive guide, you have learned multiple methods to list installed packages on your CentOS system. Whether you prefer using RPM, YUM, DNF, or other tools, obtaining a complete list of installed packages is crucial for system administration tasks. Refer to the provided resources and references for further exploration and support as you continue managing packages on your CentOS system.


Discover more from Gadget Rumours

Subscribe to get the latest posts sent to your email.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top

Discover more from Gadget Rumours

Subscribe now to keep reading and get access to the full archive.

Continue reading