1.如何设置CentOS 5的yum源为上海交通大学网站
修改/etc/yum.repos.d/CentOS-Base.repo为:
CentOS-Base.repo
[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5.0/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5.0/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5.0/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5.0/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5.0/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
2.中科大yum源
http://mirrors.ustc.edu.cn/centos/5/os/i386/
分享到:
相关推荐
介绍如何在RHEL5没有subscription的情况下换用centos yum源
CentOS yum 源配置文档.
RHEL 6.X使用CentOS yum源,
centos6_64 yum配置,一键搞定.centos6_64 yum配置,一键搞定
redhat7替换使用CentOS yum源--博客附件;方便下载,改为1积分,CSDN好像最低就是1积分! 大家别下了,我怕资源失效,文章写好久了
CentOS6.9安装的yum源 一不小心删除yum源后重新安装的文件
解决红帽linux下载yum源问题,或其他linux系统yum源
centos9_StreamISO镜像及yum源配置文件和配置方法
阿里CentOS6 yum源
rhel中yum源替换centos中yum源
安装yum,必须按照顺序... file /usr/lib/python2.6/site-packages/yum/__init__.py from install of yum-3.2.29-40.el6.centos.noarch conflicts with file from package yum-3.2.27-14.el6.noarch ……其它输出略……
CentOS7配置本地yum源(超详细过程)
CentOS 5 yum源,163 yum源,shouhu yum源
局域网搭建centos8 yum源,使用http协议,nginx服务器
centos 配置本地yum源库,很多版本都是为其他linux配置yum源库的教程,我使用的是centos,所以给出一些我自己配置的本地yum源库,基于centos
# 删除redhat自带的yum包 rpm -qa|grep yum|xargs rpm -e --nodeps...rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-3.4.3-150.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
Centos 6 yum 国内源 非常难找。 附带 gmp-4.3.2.tar.bz2 mpc-0.8.1.tar.gz mpfr-2.4.2.tar.bz2
yum源所需包 CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS 6.5 的 软件源很多官方已经停止维护,该文件包内配置好的yum源是可以正常使用的。将原/etc/yum.repos.d/目录下原来的 .repo 备份, 然后把本文件包内的repo文件复制过去, yum clean all 后,再 yum ...
centos6.1 yum源打包: 直接覆盖到 /etc/