腳本以下node
#run me: #curl http://mirrors.dev.shopex.cn/rpm/scripts/init.txt | sh rpm -qa yum* | xargs rpm -e --nodeps export SCRIPT_SITE=http://mirrors.dev.shopex.cn/rpm/scripts export ARCH_TYPE=`arch` rpm -ivh --replacepkgs $SCRIPT_SITE/python-iniparse-0.2.3-4.el5.noarch.rpm \ $SCRIPT_SITE/yum-3.2.22-26.el5.centos.noarch.rpm \ $SCRIPT_SITE/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm \ $SCRIPT_SITE/yum-metadata-parser-1.1.2-3.el5.centos.$ARCH_TYPE.rpm wget $SCRIPT_SITE/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo wget $SCRIPT_SITE/shopex.repo -O /etc/yum.repos.d/shopex.repo
echo All Done!python
而後執行此腳本:)centos
這個CENTOS鏡像的資源,若是你還須要擴展應用功能,能夠安裝rpmforge app
地址以下 http://pkgs.repoforge.org/rpmforge-release/ curl
找到你對應的系統版本安裝包 rom -ivh便可 ,好了,如今能夠happy的使用YUM了,安裝你想要的東西。ide