1.添加rpm fusion源
rpm -ivh
2.导入rpm fusion仓库的密钥
rpm --import
3.修改密钥文件
gedit /etc/yum.conf
在打开的文件尾部添加下面几行:
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=
gpgkey=
gpgcheck=1
4.添加adobe软件仓并导入密钥
rpm -ivh
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
5.添加上海交大的yum 源
vim /etc/yum.repos.d/sjtu.repo #不喜欢用vim 的人请用gedit
在打开的文件中添加如下行:
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/releases/$releasever/Everything/$basearch/os/
ftp://ftp.sjtu.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/os/
ftp://ftp.cuhk.edu.hk/pub/Linux/fedora/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/updates/$releasever/$basearch/
ftp://ftp.cuhk.edu.hk/pub/Linux/fedora/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
然后保存退出。
6.更新缓存
yum makecache
7.更新yum插件,以加快下载速度
yum install yum-presto -y
yum -y install yum-fastestmirror
阅读(1071) | 评论(0) | 转发(0) |