In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail about the CentOs system with python and yum uninstalled after how to reinstall, the editor thinks it is very practical, so share with you to do a reference, I hope you can get something after reading this article.
1: uninstall python (in case some students do not uninstall cleanly)
two。 Uninstall yum
3. Verify that the deletion is clean
4. Install python and yum
Find the corresponding version of the python rpm package for your system (mine is a 64-bit centos 6.9 system) in the image site linked below.
Key points: be sure to choose files corresponding to your own system version! Otherwise, there will be the following error (at first, when the blogger did not see the site, he referred to the list of downloaded files given by another blogger and searched and downloaded directly on the Internet by the file name, and the result file did not match the system. It took a lot of time to search the Internet.
Http://vault.centos.org/
Go to the website, select the corresponding version of your system, and enter the OS folder
Select the number of bits corresponding to the system, 32-bit i386, 64-bit, x8631-64
Enter the Packages folder
When you go in, you will see a lot of rpm files.
5. Download the following files
Python-2.6.6-66.el6_8.x86_64.rpmpython-devel-2.6.6-66.el6_8.x86_64.rpmpython-iniparse-0.3.1-2.1.el6.noarch.rpmpython-libs-2.6.6-66.el6_8.x86_64.rpmpython-pycurl-7.19.0-9.el6.x86_64.rpmpython-urlgrabber-3.9.1-11.el6.noarch.rpmrpmlypythonMurray 4.8.0- 55.el6.x86_64.rpmyum-3.2.29-81.el6.centos.noarch.rpmyum-metadata-parser-1.1.2-16.el6.x86_64.rpmyum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
6. Log in to the server and create a python folder where you like. Here I am under local's src.
7. Upload the files you just downloaded to your server's python folder
8. Installation begins after upload
If an error similar to the following occurs in the intermediate process, this is the dependency between the package and the package (provided that your file and the version of the system correspond).
Knock on the blackboard! The dependency here is not simply dependent on one. The first time this problem occurred was when python-2.6.6-66.el6_8.x86_64.rpm was installed (forgot the screenshot). Some people said that it relied on python-libs-2.6.6-66.el6_8.x86_64.rpm. Then the blogger still reported this error after trying, and then simply thought that it had all been installed together. This is really successful. (if you don't know who is dependent on whom, just install them together, and the personal test is effective.)
9. test
Yum
If you report the following information, it means that the reinstallation is successful.
On the "CentOs system comes with python and yum uninstalled after how to reinstall" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
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.