redhat6.7更换yum源

1.删除redhat原有的yum

rpm-aq|grepyum|xargsrpm-e--nodeps

rpm-qa|grepyum

2.下载yum安装文件

wgethttp://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-69.el6.centos.noarch.rpm

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

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

wgethttp://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

rpm-ivhpython-iniparse-0.3.1-2.1.el6.noarch.rpm

rpm-ivhyum-metadata-parser-1.1.2-16.el6.x86_64.rpm

rpm-ivhyum-3.2.29-69.el6.centos.noarch.rpmyum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

查看内核方法:uname-a

相关推荐