今天整了一个下午,看网上百度的乱七八糟的,最后自己google了下看了下外文文档几分钟搞定
总结一下
百度太坑,fuck,人家网易上面有官方介绍你就是不显示,整一堆什么破烂玩意,以后真不信了
163 yum源
帮助文档 http://mirrors.163.com/.help/centos.html
使用说明
首先备份/etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)
运行yum makecache生成缓存
RPM Fusion 文档
http://rpmfusion.org/Configuration
安装 RPM Fusion
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'
说先要装epel
“You need to enable EPEL on RHEL 5 & 6 or compatible distributions like CentOS before you enable RPM Fusion for EL. See the fedoraproject wiki for instructionhow to enable EPEL.”
所以先来装epel
文档在此http://fedoraproject.org/wiki/EPEL/FAQ#howtouse
安装装epel
su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'
对了还要装个 fastestmirror
yum下就行了
yum install yum-fastestmirror
3个yum源加上本地源 基本满足所有需求
[CentOS-ftp.sjtu.edu.cn]
name=CentOS 6
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/os/$basearch/
enabled=1
gpgcheck=0
gpgkey=http://ftp.sjtu.edu.cn/centos/6.3/os/$basearch/RPM-GPG-KEY-CentOS-6
[updates-ftp.sjtu.edu.cn]
name=CentOS updates
#baseurl=http://ftp.sjtu.edu.cn/centos/6.3/updates/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/updates/$basearch/
enabled=1
gpgcheck=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[extras-ftp.sjtu.edu.cn]
name=CentOS-6-Extras
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/extras/$basearch/
gpgcheck=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[centosplus-ftp.sjtu.edu.cn]
name=CentOS-6-Plus
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/centosplus/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[contrib-ftp.sjtu.edu.cn]
name=CentOS-6-Contrib
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/contrib/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[fasttrack-ftp.sjtu.edu.cn]
name=CentOS-6-fasttrack
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/fasttrack/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
name=CentOS 6
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/os/$basearch/
enabled=1
gpgcheck=0
gpgkey=http://ftp.sjtu.edu.cn/centos/6.3/os/$basearch/RPM-GPG-KEY-CentOS-6
[updates-ftp.sjtu.edu.cn]
name=CentOS updates
#baseurl=http://ftp.sjtu.edu.cn/centos/6.3/updates/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/updates/$basearch/
enabled=1
gpgcheck=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[extras-ftp.sjtu.edu.cn]
name=CentOS-6-Extras
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/extras/$basearch/
gpgcheck=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[centosplus-ftp.sjtu.edu.cn]
name=CentOS-6-Plus
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/centosplus/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[contrib-ftp.sjtu.edu.cn]
name=CentOS-6-Contrib
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/contrib/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6
[fasttrack-ftp.sjtu.edu.cn]
name=CentOS-6-fasttrack
baseurl=http://ftp.sjtu.edu.cn/centos/6.3/fasttrack/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-6