centos 5.11 配置源(亲测能用)

centos 5 目前已经不维护了,所以很多源也都不支持了。我试过阿里、网易、中科大的源都不行。最终找到这个源可以用(截至2024年3月27)。
拷贝下面的源内容到 /etc/yum.repos.d/CentOS-Base.repo 文件里面

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
[base]
name=CentOS- - Base
baseurl=http://archive.kernel.org/centos-vault/5.11/os/x86_64
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
#released updates
[updates]
name=CentOS- - Updates
baseurl=http://archive.kernel.org/centos-vault/5.11/updates/x86_64
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
#additional packages that may be useful
[extras]
name=CentOS- - Extras
baseurl=http://archive.kernel.org/centos-vault/5.11/extras/x86_64
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=&repo=extras
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
#packages used/produced in the build but not released
[addons]
name=CentOS- - Addons
baseurl=http://archive.kernel.org/centos-vault/5.11/addons/x86_64
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=&repo=addons
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS- - Plus
baseurl=http://archive.kernel.org/centos-vault/5.11/centosplus/x86_64
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
#contrib - packages by Centos Users
[contrib]
name=CentOS- - Contrib
baseurl=http://archive.kernel.org/centos-vault/5.11/contrib/x86_64/
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=&repo=contrib
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

别忘了

sudo yum clean all
sudo yum makecache

相关推荐

  1. centos 5.11 配置

    2024-03-31 16:04:05       17 阅读
  2. list转树形,

    2024-03-31 16:04:05       22 阅读
  3. CentOS配置本地

    2024-03-31 16:04:05       29 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-31 16:04:05       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-31 16:04:05       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-31 16:04:05       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-31 16:04:05       20 阅读

热门阅读

  1. CentOS 7.9上安装Docker

    2024-03-31 16:04:05       17 阅读
  2. 洛谷P1000超级玛丽游戏C++

    2024-03-31 16:04:05       13 阅读
  3. Stable Diffusion 推荐硬件配置和本地化布署

    2024-03-31 16:04:05       18 阅读
  4. 【shell】shell实现等待用户输入

    2024-03-31 16:04:05       12 阅读
  5. 【华为OD机试C++】进制转换

    2024-03-31 16:04:05       14 阅读
  6. [单调队列] 滑动窗口

    2024-03-31 16:04:05       13 阅读
  7. 一文总结vue和react的区别

    2024-03-31 16:04:05       14 阅读
  8. zookeeper命令详解1

    2024-03-31 16:04:05       19 阅读
  9. Zookeeper中的ACL 权限控制机制

    2024-03-31 16:04:05       13 阅读