JIKE
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users

    CentOS 7.8 yum update 更新,报 404

    技术分享
    1
    1
    224
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • malaohu
      我是小马甲~ 🤫 last edited by

      mkdir ~/bak/
      cp -r /etc/yum.repos.d/* ~/bak/
      
      # https://mirrors.tuna.tsinghua.edu.cn/centos-vault/7.8.2003/
      
      cd /etc/yum.repos.d
      
      minorver=7.8.2003
      sudo sed -e "s|^mirrorlist=|#mirrorlist=|g" \
               -e "s|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/$minorver|g" \
               -i.bak \
               /etc/yum.repos.d/CentOS-*.repo
      
      
      yum makecache
      

      唐宋元明清,连排小工兵!

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post