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
sudo
command to run the following commands. - To check if a specific package is installed on your system, use the
yum list installed
command followed by the package name. For example:
yum list installed package-name
This 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 installed
command without any arguments. For example:
yum list installed
This 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 available
command 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 available
command without any arguments. - To search for a package by name use the
yum search
command 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 -qa
command.
rpm -qa
These 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.