#!/bin/sh
#****************************************************************## ScriptName: yum-163.sh.txt# Author: Bai Shuming# Create Date: 2013-05-04# Modify Author: # Modify Date: # Function:# Source:http://mirrors.163.com #***************************************************************#mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.bakrpm -e --nodeps yum-plugin-security-1.1.30-14.el6.noarchrpm -e --nodeps yum-metadata-parser-1.1.2-16.el6.x86_64rpm -e --nodeps yumrpm -e --nodeps yum-updatesd-0.9-2.el5rpm -e --nodeps yum-rhn-plugin-0.9.1-40.el6.noarchrpm -ivh http://vault.centos.org/6.3/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm --nodeps rpm -ivh http://vault.centos.org/6.3/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm --nodeps rpm -ivh http://vault.centos.org/6.3/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm --nodeps rpm -ivh http://vault.centos.org/6.3/os/x86_64/Packages/yum-3.2.29-30.el6.centos.noarch.rpm --nodeps cd /etc/yum.repos.d/wget http://vault.centos.org/6.3/os/x86_64/RPM-GPG-KEY-CentOS-6rpm --import RPM-GPG-KEY-CentOS-6 && wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -O /etc/yum.repos.d/CentOS6-Base.repo &&sed -i 's/\$releasever/6.3/g' /etc/yum.repos.d/CentOS6-Base.repoyum clean allyum update -y