配置rhel 5 或6使用CentOS的yum站点升级
2012-09-22 10:08
387 查看
redhat yum 源 配置
配置rhel 5 或6使用CentOS的yum站点升级删除原来的/etc/yum.conf文件和/etc/yum.repo.d目录
rm -rf /etc/yum.conf
cd /etc/yum.repos.d/
rm -rf rhel-debuginfo.repo
vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[base]
name=centos-5 - Base
baseurl=http://centos.ustc.edu.cn/centos/5/os/i386/
# the other site: http://centos.candishosting.com.cn/centos/5/os/i386/
# you can find more site in: http://www.centos.org/modules/tinycontent/index.php?id=13
enabled=1
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
#released updates
[update]
name=CentOS-5 - Updates
baseurl=http://mirror.centos.org/centos/5/updates/i386/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
baseurl=http://mirror.centos.org/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=http://mirror.centos.org/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
baseurl=http://mirror.centos.org/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
baseurl=http://mirror.centos.org/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
#packages in testing
[testing]
name=CentOS-5 - Testing
baseurl=http://mirror.centos.org/centos/5/testing/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
到此就ok了 ,这个是中科大的源,号称每隔小时跟新一次,速度确实蛮快
相关文章推荐
- 配置rhel 5 使用CentOS的yum站点升级
- Linux/CentOS配置:使用yum update更新时不升级内核的方法
- 在CentOS中使用 yum 安装MongoDB及服务器端配置
- 在CentOS/RHEL 6.2上使用YUM安装PHP5.4
- CentOS使用技巧---更改yum镜像站点为中国站点地址
- RHEL/CentOS/Fedora各种源(EPEL、Remi、RPMForge、RPMFusion)配置 、YUM 源优先级插件:Yum Priorities
- CentOS 6 使用 yum 安装MongoDB及服务器端配置
- CentOS 6 使用 yum 安装MongoDB及服务器端配置
- 在CentOS中使用 yum 安装MongoDB及服务器端配置
- CentOS 6.4升级Python导致yum无法使用
- RHEL|Centos|Fedora第三方软件库(pbone|EPEL|RPMForge|RPMFusion)使用配置
- 在CentOS中使用 yum 安装MongoDB及服务器端配置
- RHEL 7.2 Centos 7.2 中如何在命令行中使用/操作/配置无线网卡wifi
- CentOS下使用yum安装配置和使用svn
- Red Hat 7.3 配置使用CentOS 7.3 Yum 源
- RHEL/CentOS 5.x使用yum快速安装部署Nginx+PHP(FastCGI)+MySQL生产环境及优化
- CentOS 6 使用 yum 安装MongoDB及服务器端配置
- Hadoop 之Mong DB 之CentOS 6 使用 yum 安装MongoDB及服务器端配置
- centos中python升级导致yum命令无法使用
- CentOS下升级系统 yum update命令 自己配置更新源