rhel6.5配置yum源步骤:
1.到 下载三个yum的安装包;yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpmyum-metadata-parser-1.1.2-16.el6.x86_64.rpmyum-3.2.29-60.el6.centos.noarch.rpm2.将三个安装包同时进行安装;3.下线,拷贝到/etc/yum.repo.d/下;4.将CentOS6-Base-163.repo中所有的$releasever替换中6,sed -i 's/$releasever/6/g' CentOS6-Base-163.repo;5.yum clean all、yum makecache、yum update。具体命令和脚本如下:
#!/bin/bash
cp /etc/yum.repos.d/*.repo /etc/yum.repos.d/*.repo.bakrpm -qa | grep yum|xargs rpm -e --nodepsls dd || mkdir ddcd ddwget wget wget rpm -ivh yum*wget cp CentOS6-Base-163.repo /etc/yum.repo.d/cd /etc/yum.repo.d/sed -i 's/$releasever/6/g' CentOS6-Base-163.repoyum clean allyum makecacheyum update