Install and uninstall the rpm package and yum in CentOS. 1. Install the rpm package: 1. install a package # rpm-ivh 2. upgrade a package # rpm-Uvh 3. remove a package # rpm-e 4. installation parameter -- force installation even if it overwrites files of other packages -- nodeps if the installation of this RPM package depends on other packages, even if other packages are not installed, force installation. 5. check whether a package is installed # rpm-q <rpm package name> 6. obtain the information of the installed package # rpm-qi <rpm package name> 7. list the files in this package # rpm-ql <rpm package name> 8. list the RPM packages of a file on the server # rpm-qf 9. it can be used together with several parameters # rpm-qil <rpm package name> 10. list all installed rpm packages # rpm-qa 11. list the files in an RPM package that have not been installed into the system? # Rpm-qilp <rpm package name> 2. Uninstall the rpm package: rpm-qa | grep package name this command is used to list all packages related to the package name. The rpm-e file name command is the software you want to uninstall, followed by the package name, the last version number is not needed to play 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 # rpm-e mysqlclient III. yum installation: # yum install package name IV. yum uninstall: # yum-y remove package name