How to check and list installed packages in CentOS Linux
In CentOS Linux, you can use the yum package manager to check and list the installed packages on your system. Here are the steps to check and list installed packages:
- Open a terminal window and log in as the root user or use the
sudocommand to run the following commands. - To check if a specific package is installed on your system, use the
yum list installedcommand followed by the package name. For example:
yum list installed package-nameThis will display information about the package, including its version, size, and installation date.
- To list all installed packages on your system, use the
yum list installedcommand without any arguments. For example:
yum list installedThis will display a list of all installed packages along with their versions and sizes.
- To check if a package is available in the repositories, but not installed on your system, you can use
yum list availablecommand followed by the package name. - To list all packages that are available in the repositories, but not installed on your system, use the
yum list availablecommand without any arguments. - To search for a package by name use the
yum searchcommand followed by the package name. For example:
yum search package-name- To list all installed packages along with their version, architecture and repository, you can use
rpm -qacommand.
rpm -qaThese are some examples of how you can check and list installed packages on a CentOS Linux system using the yum package manager. You can choose the command that best suits your needs and use them accordingly.
