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 of uninstalling python and yum in CentOs system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is a detailed introduction to "how to solve the problem of unloading python and yum in CentOs system". The content is detailed, the steps are clear, and the details are properly handled. I hope this article "how to solve the problem of unloading python and yum in CentOs system" can help you solve your doubts. Let's go deeper and learn new knowledge together with the ideas of Xiaobian.

1: uninstall python (in case some students do not uninstall clean)

2. Unload yum

3. Verify deletion is clean

4. Install Python and Yum

Find your version of python rpm package (mine is centos 6.9 64 bit system)

Focus: Be sure to select the file corresponding to your own system version! Otherwise, the following error will occur (at first, the blogger did not see this website when referring to the download file list given by another blogger directly on the Internet by file name search download, the result file does not match the system...... It took me a while to search the internet again...

Enter the website, select the version corresponding to your system, and enter the os folder.

Select the number of bits corresponding to the system, i386 for 32 bits, x86_64 for 64 bits

Go to the packages folder

When you go in, you'll see a lot of rpm files.

5. Download the following documents

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.rpmrpm-python-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 in your favorite place, here under src for my local

7. Upload the files you just downloaded to the python folder on your server

8. Start installation after uploading

If an error similar to the following occurs in the middle of the process, this is the dependency between packages (provided that your file and system version correspond)

Knock on the blackboard! Dependency here is not just dependent on one so simple, when this problem first appeared in the installation of python-2.6.6-66.el6_8.x86_64.rpm (forgot to screenshot), went to the Internet to find a circle, some people say it depends on python-libs-2.6.6-66.el6_8.x86_64.rpm, and then blogger tried to still report this error, and later simply thought that they were all installed together, This really succeeded…(I don't know who has a dependency relationship with whom, just install them all together, and the personal test is effective)

9. test

yum

Report the following information to indicate that the reload is successful ~~~~

Read here, this article "CentOs system comes with python and yum uninstall problem how to solve" article has been introduced, want to master the knowledge points of this article also need to practice to understand, if you want to know more related content of the article, welcome to pay attention to 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.

Share To

Internet Technology

Wechat

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

12
Report