码迷,mamicode.com
首页 > 其他好文 > 详细

redhat在线yum收费问题解决

时间:2014-12-30 01:50:13      阅读:538      评论:0      收藏:0      [点我收藏+]

标签:yum   redhat   centos   

redhat的yum在线更新是收费的,未注册则不能使用,解决办法是更换为centos的yum,以下为详细过程:

1.卸载redhat原有的yum

rpm -e `rpm -qa |grep yum ` --nodeps

2.到网易163镜像源下载centos的yum安装包

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpm

wget

http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

wget

http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

3.安装CentOS yum

rpm -ivh yum*

4.更新repo文件

备份原先的repo文件,

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

mv http://mirrors.163.com/.help/CentOS6-Base-163.repo CentOS-Base.repo

5.yum makecache的时候报错,需要下载安装Centos的release和indexhtml包

技术分享

技术分享

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/centos-indexhtml-6-2.el6.centos.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/centos-release-6-6.el6.centos.12.2.x86_64.rpm

安装上面两个rpm包即可。

5、yum clean all ; yum cakecache

6、yum install vnc*


本文出自 “chenli” 博客,请务必保留此出处http://cl340266909.blog.51cto.com/2881514/1597514

redhat在线yum收费问题解决

标签:yum   redhat   centos   

原文地址:http://cl340266909.blog.51cto.com/2881514/1597514

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!