In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the method of installing and uninstalling rpm package and yum under CentOS". In the daily operation, I believe that many people have doubts about the method of installing and uninstalling rpm package and yum under CentOS. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "installation and uninstallation of rpm package and yum under CentOS". Next, please follow the editor to study!
1. Installation of rpm package:
1. Install a package
# rpm-ivh
two。 Upgrade a package
# rpm-Uvh
3. Remove a bag
# rpm-e
4. Installation parameters
-- force forces installation even if it overwrites files belonging to other packages
-- nodeps if the installation of the RPM package depends on other packages, it will be forced to install even if the other packages are not installed.
5. Query whether a package is installed
# rpm-Q
< rpm package name>6. Get information about the installed package
# 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. Several parameters can be combined and used together.
# rpm-qil
< rpm package name>10. List all installed rpm package
# rpm-qa
11. List what files are contained in a RPM package file that is not installed into the system?
# rpm-qilp
< rpm package name>2. Uninstall rpm package:
Rpm-qa | grep package name
This command is to list all the packages related to the package name.
Rpm-e file name
This command is the software you want to uninstall, followed by the package name, and the final version number is not required.
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
3. Yum installation:
# yum install package name
4. Uninstall yum:
# yum-y remove package name
At this point, the study of "the method of installing and uninstalling rpm package and yum under CentOS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.