In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to restore the data deleted by the yum command in centos, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Solution.
Method 1:
This netizen's solution, record it.
$rpm-qa | grep python- | grep 2.6$ sudo rpm-ivh-force-nodeps ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6.5/x86_64/updates/fastbugs/python-2.6.6-52.el6.x86_64.rpm
To solve the problem, yum can be used, the principle is estimated that python rollback to the default 2.6
Method 2:
This is my solution.
Http://mirrors.163.com/centos/6/os/x86_64/Packages/
1. Go to the above website to download the following RPM package
Python-iniparse-0.3.1-2.1.el6.noarch.rpm yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
2. After the download is completed, install it with the rpm command, as follows:
Rpm-ivh-- force-nodeps python-iniparse-0.3.1-2.1.el6.noarch.rpm rpm-ivh-- force-- nodeps yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm rpm-ivh-- force-- nodeps yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
3. Go to http://yum.baseurl.org/wiki
Download yum-3.4.3.tar.gz and decompress it in the directory you specified. The decompression command is as follows:
Tar-zxvf yum-3.4.3.tar.gz # decompress and enter to the yum-3.4.3 directory
4. Enter. / yummain.py update
The above is how to restore the data deleted by the yum command in centos. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.