`

RHEL5系统下配置CENTOS YUM源升级的方法

 
阅读更多

1. 安装yum
   RHEL5系统下已缺省安装。
  
2. 修改两个.repo文件

cd /etc/yum.repos.d/
#vi 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/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/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/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/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/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/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5



修改dag.repo文件
# vi /etc/dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
3. 导入key

4. 运行,测试
# yum list
#yum update

分享到:
评论

相关推荐

    RHEL5下使用centos Yum源

    介绍如何在RHEL5没有subscription的情况下换用centos yum源

    rhel中yum源替换centos中yum源

    rhel中yum源替换centos中yum源

    RHEL 6.X使用CentOS yum源

    RHEL 6.X使用CentOS yum源,

    RHEL5配置 CentOS YUM更新源

    NULL 博文链接:https://mypanpan.iteye.com/blog/1164635

    RHEL6使用CentOS6的yum源

    RHEL6使用CentOS6的yum源 利用yum安装php,mysql,apache

    rhel6 86_64 使用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 ……其它输出略……

    RHEL5的YUM源配置笔记

    RHEL5中YUM源的配置,包括将光碟、yum源网站,第三方Yum源,自己搭建yum源服务器等

    redhat7替换使用CentOS yum源--博客附件

    redhat7替换使用CentOS yum源--博客附件;方便下载,改为1积分,CSDN好像最低就是1积分! 大家别下了,我怕资源失效,文章写好久了

    rhel7 替换为CentOS源文件

    此文档为RHEL7的yum源替换为免费CentOS的yum源所需包。

    redhat更改为centOS-6.4 yum源相关安装包

    redhat更改为centOS-6.4 yum源相关安装包

    RHEL解决无法使用YUM源问题.pdf

    如何在RHEL中,解决无法使用YUM源问题 如何在RHEL中,解决无法使用YUM源问题 如何在RHEL中,解决无法使用YUM源问题 如何在RHEL中,解决无法使用YUM源问题 如何在RHEL中,解决无法使用YUM源问题

    Redhat5yum源.tar.gz

    CentOS 5 在2017-03-31日已经结束...2.修改源配置文件 rhel-source.repo.bak。3. 导入key rpm --import RPM-GPG-KEY-CentOS-5。4.清理yum缓存 yum clean all && yum makecache。5.测试yum yum repolist all /yum list

    rhel5.6yum源配置

    本地yum配置(光盘)、网络yum配置(centsos源) 先试试将对应版本目录下的yum-centos.repo拷贝至/etc/yum.repos.d/下,运行yum makecache,若不能缓冲数据库,再看README。

    RHEL7使用iso文件配置本地yum源.doc

    RHEL7使用iso文件配置本地yum源.doc

    RHEL7更换CentOS7yum

    内含自动安装更换脚本和rpm包,适用于RHEl7系列,拖入/root下解压执行即可

    rhel源更换为centos源|所有需要的yun包

    rhel源更换为centos源| yum-3.2.29-40.el6.centos.noarch.rpm| yum-metadata-parser-1.1.2-16.el6.i686.rpm| yum-metadata-parser-1.1.2-16.el6.x86_64.rpm| yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

    souhu的yum源-centos6

    在redhat中配置centos6/7的源,目前网易163、aliyun、tsinghua等镜像网站都已经没有了centos6的yum源,该配置网站包含最新的souhu的centos6-yum源,方便配置centos6的yum。 rhel-source.repo

    Rhel5的YUM安装配置

    Rhel5的YUM安装配置方法,对于rehl5默认的带的有yum安装包,但是由于装的非正版的,因此红帽网站并不提供yum升级服务器,而我们采用centos的源文件,实现yum升级。

    RHEL6.3安装CentOS6.3的yum

    64位Linux系统下的yum包安装,包含下载网址,配置等详尽资料

    RHEL安装yum源

    yum-3.4.3-154.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm python-urlgrabber-3.10-8.el7.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm rpm-4.11.3-25.el7.x86_64....

Global site tag (gtag.js) - Google Analytics