Scientific Linux 6 - 初期設定 - システム最新化 : Server World
yum -y install yum-conf-sl-other yum-plugin-fastestmirror yum-plugin-priorities
cd /etc/yum.repos.d/ mv sl.repo sl.repo.default mv sl-other.repo sl-other.repo.default
cat << '_EOF_' > /etc/yum.repos.d/sl.repo [sl] name=Scientific Linux $releasever - $basearch mirrorlist = file:///etc/yum.repos.d/mirrors-sl enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson priority=1 [sl-security] name=Scientific Linux $releasever - $basearch - security updates mirrorlist = file:///etc/yum.repos.d/mirrors-sl-security enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson priority=1 [sl-source] name=Scientific Linux $releasever - Source mirrorlist = file:///etc/yum.repos.d/mirrors-sl-source enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson priority=1 _EOF_ cat << '_EOF_' > /etc/yum.repos.d/mirrors-sl http://ftp.ne.jp/Linux/packages/scientificlinux/$releasever/$basearch/os/ http://ftp.jaist.ac.jp/pub/Linux/scientific/$releasever/$basearch/os/ http://ftp.riken.jp/Linux/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/ _EOF_ cat << '_EOF_' > /etc/yum.repos.d/mirrors-sl-security http://ftp.ne.jp/Linux/packages/scientificlinux/$releasever/$basearch/updates/security/ http://ftp.jaist.ac.jp/pub/Linux/scientific/$releasever/$basearch/updates/security/ http://ftp.riken.jp/Linux/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/ _EOF_ cat << '_EOF_' > /etc/yum.repos.d/mirrors-sl-source http://ftp.ne.jp/Linux/packages/scientificlinux/$releasever/SRPMS/ http://ftp.jaist.ac.jp/pub/Linux/scientific/$releasever/SRPMS/ http://ftp.riken.jp/Linux/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/ _EOF_
cat << '_EOF_' > /etc/yum.repos.d/sl-other.repo [sl-fastbugs] name=Scientific Linux $releasever - $basearch - fastbug updates mirrorlist = file:///etc/yum.repos.d/mirrors-sl-fastbugs enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson priority=1 [sl-debuginfo] name=Scientific Linux Debuginfo mirrorlist = file:///etc/yum.repos.d/mirrors-sl-debuginfo enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson priority=1 [sl-testing] name=Scientific Linux Testing - $basearch mirrorlist = file:///etc/yum.repos.d/mirrors-sl-testing enabled=0 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson priority=1 [sl-testing-source] name=Scientific Linux Testing - Source mirrorlist = file:///etc/yum.repos.d/mirrors-sl-testing-source enabled=0 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson priority=1 _EOF_ cat << '_EOF_' > /etc/yum.repos.d/mirrors-sl-fastbugs http://ftp.ne.jp/Linux/packages/scientificlinux/$releasever/$basearch/updates/fastbugs/ http://ftp.jaist.ac.jp/pub/Linux/scientific/$releasever/$basearch/updates/fastbugs/ http://ftp.riken.jp/Linux/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/ _EOF_ cat << '_EOF_' > /etc/yum.repos.d/mirrors-sl-debuginfo http://ftp.ne.jp/Linux/packages/scientificlinux/$releasever/archive/debuginfo/ http://ftp.jaist.ac.jp/pub/Linux/scientific/$releasever/archive/debuginfo/ http://ftp.riken.jp/Linux/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/ _EOF_ cat << '_EOF_' > /etc/yum.repos.d/mirrors-sl-testing http://ftp.ne.jp/Linux/packages/scientificlinux/6rolling/testing/$basearch/ http://ftp.jaist.ac.jp/pub/Linux/scientific/6rolling/testing/$basearch/ http://ftp.riken.jp/Linux/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/ _EOF_ cat << '_EOF_' > /etc/yum.repos.d/mirrors-sl-testing-source http://ftp.ne.jp/Linux/packages/scientificlinux/6rolling/testing/SRPMS/ http://ftp.jaist.ac.jp/pub/Linux/scientific/6rolling/testing/SRPMS/ http://ftp.riken.jp/Linux/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/ _EOF_
0 件のコメント:
コメントを投稿