Fedora12 x86_64 系统 添加163源

来源:互联网 发布:声音好听的网络女歌手 编辑:程序博客网 时间:2024/04/28 18:18

首先打开应用程序->系统工具->终端(terminal),输入su,输入密码,取得管理员权限,

1.安装寻找最快源的插件

输入:  yuminstall yum-fastestmirror

如果觉得实在是慢

可以按以下方法

rpm -ivhftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/releases/12/Everything/x86_64/os/Packages/axel-2.4-2.fc12.x86_64.rpm

rpm -ivhhttp://yum-axelget.googlecode.com/files/yum-axelget-0.2-0.2.20090926svn3.fc12.noarch.rpm

 

 

 

2.添加163的源,国内的源比较快

打开终端,输入: gedit/etc/yum.repos.d/163.repo

再次把一下内容复制到打开的163.repo中:
[Fedora-mirrors.163.com]
name=Fedora12 –x86_64
baseurl=http://mirrors.163.com/fedora/updates/12/x86_64/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedorafile:///etc/pki/rpm-gpg/RPM-GPG-KEY
[Everything-mirrors.163.com]
name=Everything12 –x86_64
baseurl=http://mirrors.163.com/fedora/updates/12/x86_64/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedorafile:///etc/pki/rpm-gpg/RPM-GPG-KEY
[updates-mirrors.163.com]
name=Fedoraupdates
baseurl=http://mirrors.163.com/fedora/updates/12/x86_64/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedorafile:///etc/pki/rpm-gpg/RPM-GPG-KEY

保存,关闭163.repo
最后,在终端中输入 yummakecache

 

 

3.添加第三方源
rpm-ivh/
http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm-ivh/
http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

 

 

 

转自:http://blog.chinaunix.net/u1/34109/showart_2219470.html

 

原创粉丝点击