Support >
  About independent server >
  Common methods for viewing all installed software packages in CentOS
Common methods for viewing all installed software packages in CentOS
Time : 2024-11-29 15:11:49
Edit : Jtti

CentOS is one of the most popular Linux distributions, and there are many ways to manage and view installed packages. The following are several common methods to help users easily manage and inspect software packages on their systems.

The most common is RPM (Red Hat Package Manager), which is used to manage RPM packages in CentOS and query installed packages. To query all installed packages:

rpm -qa

This command lists all installed RPM packages on the system.

To check whether a specific package is installed:

rpm -q Indicates the packet name

Use the rpm -q command to check whether a specific package has been installed.

To query details about a software package:

rpm-qi packet name

This command displays the details of the installed package, such as version, description, and so on.

Eugene wants to check package dependencies, for installed packages:

rpm-qR < package name >

View curl dependencies:

rpm -qR curl

If no package is installed:

Rpm-qpr <RPM file path >

You can also use the YUM command, YUM (Yellowdog Updater Modified) is a package manager for CentOS that automatically resolves dependencies and manages packages.

You can also use the repoquery tool to get a list of dependencies for RPM packages, whether the packages are installed or not. If you want to view a specific package so the package must:

repoquery --requires --resolve < package name >

The above command requires the yum-utils package, and the command installation:

sudo yum install yum-utils

You can use repoquery to query the dependencies of a package.

List all installed packages:

yum list installed

This command displays all installed packages and their version information.

Search for specific packages:

yum search Package name

Use yum search to search for available packages, both installed and uninstalled.

To display the details of the package:

yum info Package name

This command displays detailed information about the package, including dependencies, descriptions, and so on.

If you want to check the dependencies of an installed package, you can use the yum deplist command to check the dependencies of a specific package:

yum deplist

To view curl's dependencies:

yum deplist curl

Use the DNF command. DNF (Dandified YUM) is an alternative to YUM that provides faster package management capabilities.

List all installed packages:

dnf list installed

This command is similar to yum list installed and lists all installed packages.

With these methods, users can easily manage and view software packages in CentOS systems. Whether you use RPM, YUM, or DNF, you can effectively manage and query package information.

JTTI-Defl
JTTI-COCO
JTTI-Selina
JTTI-Ellis
JTTI-Eom