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:
- Prerequisites
- Using RPM Package Manager
- Using YUM Package Manager
- Using DNF Package Manager
- Additional Tools for Listing Packages
- Additional Resources and References
Step-by-Step Guide:
- Prerequisites:
- Ensure you have a CentOS system with administrative privileges.
- Familiarize yourself with the command line interface.
- 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>
- List all installed packages:
- 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>
- List installed packages with YUM:
- 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>
- List installed packages with DNF:
- 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.
- Use
- Additional Resources and References:
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.