Install and uninstall the rpm Package and yum in CentOS

Source: Internet
Author: User
Install and uninstall the rpm Package and yum in CentOS. 1. install the rpm Package: 1. install a Pack # rpm-ivh2. upgrade a Pack # rpm-Uvh3. remove a Pack # rpm-e4. installation parameter -- force is strong even if it overwrites files belonging to other packages... 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.