fedora 14 更新源

cd  /etc/yum.repos.d/

下添加:

vi sjtu.repo   #上海交大,新建sjtu.repo,输入以下内容

[Fedora-ftp.sjtu.edu.cn] 

name=Fedora14–i386

baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/14/Fedora/i386/os/

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[Everything-ftp.sjtu.edu.cn]

name=Everything14–i386

baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/14/Everything/i386/os/

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-ftp.sjtu.edu.cn]

name=Fedoraupdates

baseurl=http://ftp.sjtu.edu.cn/fedora/linux/updates/14/i386/

enabled=1

gpgcheck=0

同理:网易163,新建163.repo

[Fedora-mirrors.163.com] 

name=Fedora14–i386

baseurl=http://mirrors.163.com/fedora/updates/14/i386/

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=Everything14–i386

baseurl=http://mirrors.163.com/fedora/updates/14/i386/

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/14/i386/

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

同理:sohu,新建sohu.repo

[releases-mirror.sohu.com] 

name=fedora-releases

baseurl=http://mirrors.sohu.com/fedora/releases/13/Fedora/i386/os/

enabled=1

gpgcheck=0

[everything-mirror.sohu.com] 

name=fedora-Everything

baseurl=http://mirrors.sohu.com/fedora/releases/13/Everything/i386/os/

enabled=1

gpgcheck=0

[updates-mirror.sohu.com] 

name=Fedora-updates

baseurl=http://mirrors.sohu.com/fedora/updates/13/i386/

enabled=1

gpgcheck=0

添加完文件之后执行

su -

yum makecache

相关推荐