Fedora 10 更新系统

更新系统很简单,系统->管理->update system搞定。
但是官方的源很慢,可以添加交大的镜像源:
1、安装选择较快镜像插件:su -c'yum install yum-fastestmirror -y'
2、

用 gedit 新建一个文件,并命名为 “sjtu.repo” (不包括引号),文件内容如下:

[sjtu-Fedora]
name=sjtu - Fedora 10 - i386
baseurl=ftp://ftp.sjtu.edu.cn/Fedora/linux/releases/10/Fedora/i386/os/
        ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/releases/10/Fedora/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[sjtu-Everything]
name=sjtu - Everything 10 - i386
baseurl=ftp://ftp.sjtu.edu.cn/Fedora/linux/releases/10/Everything/i386/os/
        ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/releases/10/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[sjtu-updates]
name=sjtu - Fedora updates
baseurl=ftp://ftp.sjtu.edu.cn/Fedora/linux/updates/10/i386/
        ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/updates/10/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

 

搞定后,cd 到你保存 sjtu.repo 的目录下,并将其 cp 到 /etc/yum.repos.d/ 目录下并重建 yum 缓存即可。

sudo cp sjtu.repo /etc/yum.repos.d
yum makecache

 

-----------------------------2009-1-31修改--------------------------

InnerSea目前不使用fastestmirror插件了

InnerSea目前只使用byr的源,相应文件如下(/etc/yum.repos.d/byr.repo):

 

[byr-Fedora]
name=byr - Fedora 10 - i386
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/releases/10/Fedora/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[byr-Everything]
name=byr - Everything 10 - i386
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/releases/10/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[byr-updates]
name=byr - Fedora updates
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/updates/10/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

 

另外yum makecache需要时间较长,干脆不做了。

 

推荐安装增量安装包插件,参见http://blog.csdn.net/InnerSea/archive/2009/01/09/3742142.aspx

 

-----------------------------2009-2-9修改--------------------------

发现byr源有些包有问题,所以添加交大源做镜像(交大源中的Fedora应为fedora,下文已改正)。文件如下:

[byr-Fedora]
name=byr - Fedora 10 - i386
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/releases/10/Fedora/i386/os/

                ftp://ftp.sjtu.edu.cn/fedora/linux/releases/10/Fedora/i386/os/

enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[byr-Everything]
name=byr - Everything 10 - i386
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/releases/10/Everything/i386/os/

                ftp://ftp.sjtu.edu.cn/fedora/linux/releases/10/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[byr-updates]
name=byr - Fedora updates
baseurl=ftp://openware.byr.edu.cn/pub/mirror/fedora/linux/updates/10/i386/

                ftp://ftp.sjtu.edu.cn/fedora/linux/updates/10/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值