centos7.9 2009 误删python2.7,导致yum失效解决方法
侧边栏壁纸
  • 累计撰写 62 篇文章
  • 累计收到 47 条评论

centos7.9 2009 误删python2.7,导致yum失效解决方法

Skycyan
2020-12-02 / 8 评论 / 336 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2023年02月13日,已超过830天没有更新,若内容或图片失效,请留言反馈。

一键脚本
python-yum.sh

<!--more-->


    #临时文件目录准备
    cd /root/
    mkdr yum
    cd ./yum
    #下载相关资源包
    
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/dbus-python-devel-1.1.1-9.el7.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/libxml2-python-2.9.1-6.el7.5.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-2.7.5-89.el7.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-backports-1.0-8.el7.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-chardet-2.2.1-3.el7.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-ipaddress-1.0.16-2.el7.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-kitchen-1.1.1-5.el7.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-libs-2.7.5-89.el7.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-pycurl-7.19.0-19.el7.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-setuptools-0.9.8-7.el7.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/python-urlgrabber-3.10-10.el7.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/rpm-python-4.11.3-45.el7.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-plugin-aliases-1.1.31-54.el7_8.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-plugin-protectbase-1.1.31-54.el7_8.noarch.rpm
    wget https://mirrors.aliyun.com/centos/7.9.2009/os/x86_64/Packages/yum-utils-1.1.31-54.el7_8.noarch.rpm
    #安装相关拓展包
    rpm -Uvh RPM* yum* python* lib* db*
    
    #测试python
    python
    exit ()
    #测试yum
    yum list
-6

评论 (8)

取消
  1. 头像
    ihgxqamcpg
    Windows 10 · Google Chrome

    《黑猩猩(剧场版)》记录片高清在线免费观看:https://www.jgz518.com/xingkong/144257.html

    回复
  2. 头像
    wiotiqyayw
    Windows 10 · Google Chrome

    建议提出分阶段实施路径,增强可行性。

    回复
  3. 头像
    mhewemlmea
    Windows 10 · Google Chrome

    段落衔接自然,过渡流畅,读来一气呵成。

    回复
  4. 头像
    djgbvctead
    Windows 10 · Google Chrome

    立意高远,以小见大,引发读者对社会/人性的深层共鸣。

    回复
  5. 头像
    yykpjapiei
    Windows 10 · Google Chrome

    选材新颖独特,通过细节描写赋予主题鲜活生命力。

    回复
  6. 头像
    jysdteomlk
    Windows 10 · Google Chrome

    结论升华部分可联系更高维度价值观。

    回复
  7. 头像
    pzvhcuzzas
    Windows 10 · Google Chrome

    这篇文章如同一幅色彩斑斓的画卷,每一笔都充满了独特的创意。

    回复
  8. 头像
    jsyvqbwgum
    Windows 10 · Google Chrome

    这是一篇佳作,无论是从内容、语言还是结构上,都堪称完美。

    回复