Scientific Linux 6.2 国内源更新

Scientific Linux 6 更新源配置 
店小二 2011-09-27 08:17

      我用的教育网,更新太慢,为了能尽量使用速度快到yum源,安装yum插件yum-plugin-fastestmirror自动选择速度快到yum源:

 #yum install yum-plugin-fastestmirror

      发现新找到的源还是太慢,正好今天得知清华和上海交大有更新源,于是添加进来,一共修改了两个文件 /etc/yum.repos.d/sl.repo 和 /etc/yum.repos.d/sl-other.repo,废话少说,现在开始修改,先执行 #yum clean all ,然后:


1.首先修改 /etc/yum.repos.d/sl.repo 

# vi /etc/yum.repos.d/sl.repo 

用下面的内容替换原来的文件,或者,注意到红色的字体了吗,只要把相应的地址换成你自己找的的源,也可以快速更新!
######################################################################################
[sl]
name=Scientific Linux $releasever - $basearch

baseurl=http://mirrors.tuna.tsinghua.edu.cn/scientific/$releasever/$basearch/os/
        http://ftp.sjtu.edu.cn/scientific/$releasever/$basearch/os/
        http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
        http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
        http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
        ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
        

#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6x.txt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson

[sl-security]
name=Scientific Linux $releasever - $basearch - security updates
baseurl=http://mirrors.tuna.tsinghua.edu.cn/scientific/$releasever/$basearch/updates/security/
        http://ftp.sjtu.edu.cn/scientific/$releasever/$basearch/updates/security/
        http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
        http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
        http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
        ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
                

#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-security-6x.txt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson


[sl-source]
name=Scientific Linux $releasever - Source
baseurl=http://mirrors.tuna.tsinghua.edu.cn/scientific/$releasever/SRPMS/
        http://ftp.sjtu.edu.cn/scientific/$releasever/SRPMS/
        http://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
        http://ftp1.scientificlinux.org/linux/scientific/$releasever/SRPMS/
        http://ftp2.scientificlinux.org/linux/scientific/$releasever/SRPMS/
        ftp://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
                

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

############################################################################################
2.接着修改 etc/yum.repos.d/sl-other.repo

依然 # vi  etc /yum.repos.d/sl-other.repo

############################################################################################
[sl-fastbugs]
name=Scientific Linux $releasever - $basearch - fastbug updates
baseurl=  http://mirrors.tuna.tsinghua.edu.cn/scientific/$releasever/$basearch/updates/fastbugs/
        http://ftp.sjtu.edu.cn/scientific/$releasever/$basearch/updates/fastbugs/
        http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/fastbugs/
        http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/fastbugs/
        http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/fastbugs/
        ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/fastbugs/
              

#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-fastbugs-6x.txt
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson

[sl-debuginfo]
name=Scientific Linux Debuginfo
baseurl=http://mirrors.tuna.tsinghua.edu.cn/scientific/$releasever/archive/debuginfo/
        http://ftp.sjtu.edu.cn/scientific/$releasever/archive/debuginfo/
        http://ftp.scientificlinux.org/linux/scientific/$releasever/archive/debuginfo/
        http://ftp1.scientificlinux.org/linux/scientific/$releasever/archive/debuginfo/
        http://ftp2.scientificlinux.org/linux/scientific/$releasever/archive/debuginfo/
        ftp://ftp.scientificlinux.org/linux/scientific/$releasever/archive/debuginfo/
          

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


[sl-testing]
name=Scientific Linux Testing - $basearch
baseurl=http://mirrors.tuna.tsinghua.edu.cn/scientific/6rolling/testing/$basearch/
        http://ftp.sjtu.edu.cn/scientific/6rolling/testing/$basearch/
        http://ftp.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
        http://ftp1.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
        http://ftp2.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
        ftp://ftp.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
                
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson

[sl-testing-source]
name=Scientific Linux Testing - Source
baseurl=http://mirrors.tuna.tsinghua.edu.cn/scientific/6rolling/testing/SRPMS/
        http://ftp.sjtu.edu.cn/scientific/6rolling/testing/SRPMS/
        http://ftp.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
        http://ftp1.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
        http://ftp2.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
        ftp://ftp.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
            


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

###########################################################################################

来源:http://page.renren.com/601089068/note/845533871

你可能感兴趣的:(linux,File,Security,教育,testing)