In centos, you can use rpm to check which software has been downloaded and installed. rpm is a database recording method. It is a set of management programs that install the required packages to the system host. The parameter "-a " means querying all installed software packages. The parameter "-q" means querying whether a package is installed. The syntax is "rpm -qa".
The operating environment of this article: centos 7 system, Dell G3 computer.
Query the installed software in the system
rpm -qa
The
–a option is to query all installed software software package.
-q is to query whether a package is installed
(display difference: installed rpm packages will not display the suffix .rpm, while uninstalled packages will display the suffix .rpm)
Query which software package an installed file belongs to;
rpm -qf 文件名的绝对路径
RPM is the abbreviation of "Redhat Package
Manager". You can also guess from the name that this was developed by Redhat. . RPM is a set of management programs that install the packages you need to your Linux host in a database record manner. In other words, there is a database about RPM in your Linux system, which records the installed packages and the dependencies between packages.
The example is as follows:
Use rpm to query all software packages that centos has installed
Recommended tutorial: " centos tutorial》
The above is the detailed content of How to check which software has been downloaded and installed in centos. For more information, please follow other related articles on the PHP Chinese website!