CentOS under RPM package with Yum installation and uninstallation

Source: Internet
Author: User

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

Related Article

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.