下载 sl-mirrors.repo 放入 /etc/yum.repo.d/
中。
SL 版本
[sl]
name=Scientific Linux $releasever - $basearch - mirrros
baseurl=https://(Loading...)/$releasever/$basearch/os/
#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-7.txt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
[sl-security]
name=Scientific Linux $releasever - $basearch - security updates - mirrors
baseurl=https://(Loading...)/$releasever/$basearch/updates/security/
#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-security-7.txt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
[sl-source]
name=Scientific Linux $releasever - Source - mirrors
baseurl=https://(Loading...)/$releasever/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl7 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
运行 yum makecache
生成缓存。