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