分类: LINUX
2011-07-23 00:49:48
cd /etc/yum.repos.d/
下添加:
vi sjtu.repo #上海交大,新建sjtu.repo,输入以下内容
[Fedora-ftp.sjtu.edu.cn]
name=Fedora 14 – i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[Everything-ftp.sjtu.edu.cn]
name=Everything 14 – 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 14 – 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 14 – 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
添加上海交大的yum源 [Everything-ftp.sjtu.edu.cn] [updates-ftp.sjtu.edu.cn]
gedit /etc/yum.repos.d/sjtu.repo
在打开的文件中添加以下内容:
[Fedora-ftp.sjtu.edu.cn]
name=Fedora 12 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
name=Everything 12 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
name=Fedora updates
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
保存退出。然后执行
yum makecache
2.安装axel
最简单的方法是下载rpm包,分别下载axel和yum-axelget到本地,然后执行:
yum --nogpgcheck localinstall axel-2.3.1.fc10.i386.rpm
yum --nogpgcheck localinstall yum-axelget-.0-0.2.20080705.fc10.noarch.rpm
这样axel就下载完成了,它可以使在下载时将一个文件或者包,分成10份同时进行下载。
3.安装最快镜像插件
yum install yum-fastestmirror
4.安装加速插件
这个插件为Fedora用户提供更快,更小的下载量,它只下载 rpm 安装包中被更新的部分,而不是整个rpm 包。加速插件被计划包含在Fedora11中。要安装,请输入:
yum install yum-presto
然后编辑 /etc/yum.repos.d/fedora-updates.repo 文件
gedit /etc/yum.repos.d/fedora-updates.repo
将mirrorlist= released-f$releasever&arch=$basearch这一行注释掉(在前加上#),然后在其下,加上这样一行:
mirrorlist=
保存退出即可。