RPM Package Installation:
1. Install a Package
# RPM-IVH
2. Upgrade a Package
# RPM-UVH
3. Remove a Package
# RPM-E
4. Installation Parameters
--force Force installation Even if overwriting files belonging to other packages
--nodeps if the RPM package is installed depending on other packages, it is forced to install even if the other packages are not loaded.
5. Query whether a package is installed
# Rpm-q < RPM package name>
6. Get information about the packages that are installed
# Rpm-qi < RPM package name>
7. List what files are in the package
# RPM-QL < RPM package name>
8. List which RPM package a file on the server belongs to
#rpm-QF
9. Can synthesize several parameters to a
# Rpm-qil < RPM package name>
10. List all installed RPM package
# RPM-QA
11. List what files are included in the RPM package file that is not installed into the system?
# RPM-QILP < RPM package name>
rpm Package Uninstall:
Rpm-qa | grep Package Name
This command is to list the packages that are related to the package name.
RPM-E file name
This command is the software you want to uninstall, followed by the package name, the final version number is not a taxi
For example:
# Rpm-qa | grep MySQL
mod_auth_mysql-2.6.1-2.2
php-mysql-5.3.9-3.15
Mysql-devel-5.1.77-1.cenos 5.2
Mysql-5.0.77-1.cenos 5.2
Mysqlclient10-5.0.77-1.centos 5.2
Libdbi-dbd-mysql-0.6.5-10.centos 5.2
# RPM-E Mysqlclient
Yum Installation:
# Yum Install package name
Yum Uninstall:
# yum-y Remove Package Name
CentOS under RPM package with Yum installation and uninstallation