Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem after uninstalling python and yum in CentOS system

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the "CentOS system comes with python and yum uninstall how to solve" the relevant knowledge, in the actual case of the operation process, many people will encounter such a dilemma, then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

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.

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.

This is the end of the content of "how to solve after uninstalling python and yum in CentOS system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report