`
inlhx
  • 浏览: 49478 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Redhat6.7 切换Centos yum源

阅读更多

RedHat 更换Yum源

1.检查yum包 rpm -qa |grep yum
2.删除自带包
rpm -aq | grep yum | xargs rpm -e --nodeps
3.再检查一下
rpm -qa |grep yum
4.下载更新包
 
5.执行安装
rpm -ivh yum-*
如果出现
error: Failed dependencies:
        python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-73.el6.centos.noarch
不要慌,这个问题很恶心会导致后面安装前功尽弃,使用下面
rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm
更新rpm -Uvh python-urlgrabber版本,不更新肯定安装不过去
在执行:
rpm -ivh yum-*
 
warning: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:yum-metadata-parser    ########################################### [ 20%]
   2:yum-plugin-fastestmirro########################################### [ 40%]
   3:yum                    ########################################### [ 60%]
   4:yum-updateonboot       ########################################### [ 80%]
   5:yum-utils              ########################################### [100%]
安装成功了
6.切换源
cd /etc/yum.repos.d/ 
mv redhat.repo redhat.repo.bak
mv rhel-source.repo rhel-source.repo.bak
vi /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-6 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
 
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
 
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
 
 
8.清理缓存

yum clean all

yum makecache

 

9.验证

yum install telnet

分享到:
评论

相关推荐

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

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

    RHEL5下使用centos Yum源

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

    linux redhat centos修改yum下载源.zip_redhat yum源

    linux redhat centos修改yum下载源.zip

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

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

    redhat6和centos6通用yum源文件.zip

    redhat6和centos6通用阿里云yum源文件,已配置好的文件,下载解压,拷贝到/etc/yum.repos.d/目录,执行yum clean all命令。即可使用yum网络源。

    Redhat 使用CentOS的yum源进行升级或软件安装

    Redhat 使用CentOS的yum源进行升级或软件安装 分类: linux 2012-07-19 15:54 1113人阅读 评论(0) 收藏 举报 Redhat默认的源不但速度不给力,而且软件版本陈旧,今天试着将Redhat默认源替换为CentOS的163源,发现...

    RedHat Linux RHEL6配置本地YUM源

    RedHat Linux RHEL6配置本地YUM源

    redhat换centos的yum源所需的4个文件

    redhat 6系列的自带的yum需要在官网注册付费才能使用,网上的换yum源教程里的资源下载路径都过期了,现在将这4个文件一起打包提供下载。

    redhat7配置成centos yum安装包和yum源

    Red Hat Enterprise Linux7的更新包只对注册的用户生效,所以需要自己手动改成Centos的更新包,Centos几乎和和Redhat是一样的,所以无需担心软件包的兼容问题。

    Redhat 6.9 yum源的替换

    Redhat6.9系统替换郁闷源的所有包以及163.repo都在文件夹里面,因为自己在网上找了好久都没有一个完整的包,经过几天的搜集验证,把自己的通过的包发出来,希望对一些人游泳

    redhat使用centos yum

    亲自解决公司yum问题,特别研究编著.解决redhat在5.0及6.0的yum使用问题。

    RedHat配置免费网络yum源

    yum工具的使用无意是解决这一难题的好工具,他可以解决包安装中依赖问题,但是对于redhat版本的系统来说如果想使用yum的在线安装功能是需要银子的,那有没有在redhat下不要银子就可以使用yum呢,回答是肯定的可以...

    Redhat6.6/Redhat6.7 docker 离线安装依赖包

    Redhat6.6/Redhat6.7 docker 离线安装依赖包

    RedHat5.1配置yum源

    这是最新的redhat5.1配置centos yum的教程,将redhat的收费yum替换成centos免费yum,里面的软件下载地址是最新的(2014-02-28),大家可以直接wget使用,如果提示不可用可能是格式问题,建议先复制到记事本然后在粘贴...

    redhat/centos6通用yum源

    通用版redhat6或者centos6的yum源

    修改red hat yum 源为centos

    将red hat 7.3或7.4的yum源改为 Centos 的yum源。文件放一起。要root

    Redhat6.7的镜像源

    更改redhat6.7的镜像源,直接将它替换掉/etc/yum.repos.d/中的CentOS-Base.repo

    redhat6.5修改yum源

    内含需要安装的rpm包和修改后的yum源配置。 python-urlgrabber-3.9.1-11.el6.noarch.rpm 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...

    RedHat7修改Yum源.pdf

    RedHat7修改Yum源 RedHat 7 操作系统中,Yum 源是非常重要的组件之一。Yum 源提供了软件包的下载和安装功能,但是在某些情况下,可能需要修改 Yum 源来解决问题或提高下载速度。阿里云镜像站是一个非常流行的镜像...

    RedHat9下安装yum

    安装了gcc后,源码安装gettext,再源码安装yum即可,亲测成功

Global site tag (gtag.js) - Google Analytics