View RPM Package installation location under CentOS

Source: Internet
Author: User

1. How to install the RPM package

RPM-IVH your-package.rpm
Where your-package.rpm is the file name of the RPM package you want to install, typically placed in the current directory.

2. How to uninstall the RPM package
With the command rpm-e The package name, the package name can contain information such as the version number, but there can be no suffix. rpm

3. How to view files and other information related to RPM packages

Rpm-qa |grep vsftpd

4. How to get the full file name of a package
rpm-q vsftpd can get the full name of the MySQL package installed in the system
5. See where the files in the RPM package are installed?
RPM-QL Package name Note Here is the name of the package that does not include the. rpm suffix;

If you just want to know where the executable program goes, you can also use which, such as which vsftpd,

Obtain package-related information with rpm-q,q to query queries, followed by other options, such as
I means info, get the package information;
L represents list, obtains the file listing;
A represents all, and queries are executed in all packages;
f denotes file, and the relevant query according to the document;
P means package, query according to the packages
The required query conditions can be generated using grep, or from the command line in "'"

Files from http://inotgaoshou.iteye.com/blog/812426

View RPM Package installation location under CentOS

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.