RedHat AS 5 yum源配置(转载)
2012-09-15 23:22
459 查看
RedHat AS 5 yum源配置(转载)
http://blog.m6699.com/diomedea/article/29966.html大家都知道rhel想要跟新软件都是要注册的,对于平民百姓来说那费用还是有点高的。呵呵,看了网上的资料写的都是杂乱无章的,今天刚好有时间,整理下我的redhat as5.3 的yum配置,希望对大家有所帮助
配置rhel 5 使用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了 ,是不是很方便!!!,这个是中科大的源,号称每隔小时跟新一次,速度确实蛮快
测试下
yum -y install system-config-date
相关文章推荐
- redhat 7 配置CentOS 7 yum源(转载,亲测可用)
- REDHAT6.2配置yum源(64位)(转载)
- redhat6.5 配置使用centos的yum源
- redhat6.5 配置使用centos的yum源
- redhat6.5 配置使用centos的yum源
- redhat 安装图形化界 和配置ios挂载yum源
- RedHat 网络yum源的配置
- Linux Redhat5.7系统配置网易的yum源
- Win7 VNC 客户端连接RedHat Linux AS 5.8的配置
- redhat上配置telnet [转载]
- redhat as4.6 安装 samba 及配置
- 【转】Linux RedHat as 5 vsftpd 安装配置管理
- redhat 6.8 配置yum源
- 转载备忘:redhat下ssh服务的启动于配置
- RedHat 7配置yum源
- redhat6下配置yum源的使用
- Redhat as 5 vncserver及vncviewer的详细配置
- 配置RedHat使用163的yum源
- 本地YUM源配置Redhat Enterprise 5.9
- 【推荐】在RedHat Server 5.4上安装YUM【利用网易免费yum源,配置和更新yum】