分类: LINUX
2012-01-01 10:44:34
RedHat Enterprise 6.0使用Centos6的YUM以及增加第三方源
一、换用CentOS6的yum
1.删除redhat原有的yum
rpm -aq|grep yum|xargs rpm -e –nodeps
2.下载CentOS6的yum安装包
wget
wget
#或wget
wget
wget
3.安装yum软件包
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.2-16.el6.i686.rpm
rmp -ivh yum-3.2.29-22.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-10.el6.noarch.rpm
4.更改yum源
cd /etc/yum.repos.d/
wget
5.清理yum缓存
yum clean all
yum makecache
二、增加第三方源
1.安装repo,yum更新源
rpm --import #导入repo公共钥匙
rpm -Uvh #安装ELRepo for RHEL-6, SL-6 or CentOS-6
2.安装epel,yum更新源
rpm -Uvh
3.安装rpmforge,yum更新源
rpm -Uvh
问题:
在安装软件时有时会提示Warning: RPMDB altered outside of yum.
#参考链接