全部博文(34)
分类: LINUX
2012-05-15 22:27:05
自动选择命令
yum -y install yum-fastestmirror
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
cd /etc/yum.repos.d/
下添加:
vi sjtu.repo #上海交大,新建sjtu.repo,输入以下内容
[Fedora-ftp.sjtu.edu.cn]
name=Fedora 16 – i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[Everything-ftp.sjtu.edu.cn]
name=Everything 16 – i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=
enabled=1
gpgcheck=0
同理:网易163,新建163.repo
[Fedora-mirrors.163.com]
name=Fedora 16 – i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[Everything-mirrors.163.com]
name=Everything 16 – i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[updates-mirrors.163.com]
name=Fedora updates
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora
同理:sohu,新建sohu.repo
[releases-mirror.sohu.com]
name=fedora-releases
baseurl=
enabled=1
gpgcheck=0
[everything-mirror.sohu.com]
name=fedora-Everything
baseurl=
enabled=1
gpgcheck=0
[updates-mirror.sohu.com]
name=Fedora-updates
baseurl=
enabled=1
gpgcheck=0
添加完文件之后执行
su -
yum makecache