Created
June 13, 2014 08:20
-
-
Save shalk/ed102f8d5c393f693d1c to your computer and use it in GitHub Desktop.
redhat 6 serial use centos‘s yum repo redhat6系列使用centos的yum 源,卸载自带的yum软件即可
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.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-3.2.29-40.el6.centos.noarch.rpm | |
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm | |
rpm -qa | grep yum | xargs rpm -e --nodeps | |
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm | |
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm | |
rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm | |
cd /etc/yum.repo.d/ | |
mkdir -p bak | |
mv * ./bak | |
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo | |
sed -i 's/\$releasever/6/g' CentOS6-Base-163.repo | |
yum clean all | |
yum makecache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment