RHEL6使用CentOS6的yum源
1. 检查版本的狗窝
优名
Linux RHEL6 2.6.32-431.el6.x86_64 #1 SMP星期日十一月 10 22:19:54 是 2013 x86_64 x86_64 x86_64
GNU / Linux
2. 下载以下rpm软件包
http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm
http://mirrors.163.com/centos/6/os/x86_64/Packages/python-pycurl-7.19.0-9.el6.x86_64.rpm
3.删除以下rpm软件包(或类似版本) 在RHEL6中
yum-3.2.29-40.el6.noarch
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-rhn-plugin-0.9.1-48.6月6日
rhn-client-tools-1.0.0.1-16.el6.noarch
rhn-check-1.0.0.1-16.el6.noarch
rhn-setup-1.0.0.1-16.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
subscription-manager-1.9.11-1.el6.x86_64
4. 安装下载的rpm软件包
rpm -ivh package_name
5. 删除原始回购文件
cd /etc/yum.repos.d
mv rhel-source.repo rhel-source.repo.bak
6. 创建CentOS.repo
[根据]
名称= CentOS-6 – 根据 – 163.和
baseurl = http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist = http://mirrorlist.centos.org/?释放= 6&arch = $ basearch&回购=操作系统
gpgcheck = 1
gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#已发布的更新
[更新]
名称= CentOS-6 – 更新 – 163.和
baseurl = http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist = http://mirrorlist.centos.org/?释放= 6&arch = $ basearch&repo =更新
gpgcheck = 1
gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#其他可能有用的软件包
[临时演员]
名称= CentOS-6 – 附加功能 – 163.和
baseurl = http://mirrors.163.com/centos/6/extras/$basearch/
#mirrorlist = http://mirrorlist.centos.org/?释放= 6&arch = $ basearch&repo = extras
gpgcheck = 1
gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#扩展现有软件包功能的其他软件包
[centosplus]
名称= CentOS-6 – 加 – 163.和
baseurl = http://mirrors.163.com/centos/6/centosplus/$basearch/
#mirrorlist = http://mirrorlist.centos.org/?释放= 6&arch = $ basearch&repo = centosplus
gpgcheck = 1
已启用= 0
gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#贡献 – Centos用户的软件包
[贡献]
名称= CentOS-6 – 贡献者 – 163.和
baseurl = http://mirrors.163.com/centos/6/contrib/$basearch/
#mirrorlist = http://mirrorlist.centos.org/?释放= 6&arch = $ basearch&repo = contrib
gpgcheck = 1
已启用= 0
gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
7. 清除yum缓存并进行测试
百胜清理所有
yum makecache
百胜安装httpd