Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> Linuxチュートリアル >> CentOS yumソースを変更する方法

CentOS yumソースを変更する方法

  

CentOS yumソースでの遅いダウンロードを解決します。

仮想マシンに最近インストールされたCentOS 5.5では、yumアップデートを使用すると、ダウンロード速度が異常になります。あなたはyum設定ファイルを修正してそれを国内サーバーに向けることができます。オプション1:#cd /etc/yum.repos.d/# mv CentOS-Base.repo CentOS-Base.repo.bak#wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 2番目:CentOS-Base.repoファイルを変更することを意味し、baseurlをbaseurl = http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/に設定します。詳細な構成は以下のとおりです。 ]

名前= CentOS-5-Base

#mirrorlist = http://mirrorlist.centos.org/?release = $ releasever5& arch = $ basearch& repo = os

#baseurl = http://mirror.centos.org/centos/$releasever/os/$basearch/

baseurl = http://ftp.sjtu.edu.cn/centos/5/Os /$ basearch /

gpgcheck = 1

gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#released updates

[update]

name = CentOS-5-Updates

#mirrorlist = http://mirrorlist.centos.org/?release = 4& arch = $ basearch& & & am;; repo = updates

baseurl = http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/

gpgcheck = 1

gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#パッケージはビルドで使用/作成されていますが、リリースでは使用されていませんEd

[アドオン]

name = CentOS-5-Addons

#mirrorlist = http://mirrorlist.centos.org/?release = 4& arch = $ Basearch& repo = addons

baseurl = http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/

gpgcheck = 1

gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#役に立つかもしれない追加のパッケージ

[追加]

name = CentOS-5-Extras

#mirrorlist = http://mirrorlist.centos.org/?release = 4& arch = $ basearch& repo = extras

baseurl = http://ftp .sjtu.edu.cn /centos /5 /extras /$ basearch /

gpgcheck = 1

gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY -centos5

#既存のパッケージの機能を拡張する追加のパッケージ

[centosplus]

name = CentOS-5-Plus

#mirrorlist = http: /////////////////////////////

gpgcheck = 1

有効= 0

gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

#c Centosユーザーによるパッケージの配信 -

[contrib]

name = CentOS-5-Contrib

#mirrorlist = http://mirrorlist.centos.org/?release = 4& arch = $ basearch& repo = contrib

baseurl = http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/

gpgcheck = 1 < Br>

有効= 0

gpgkey = http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

インポートキー#rpm– import http: //ftp.sjtu.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5実行、テスト#yum updateすべての一時ファイルを削除

#yum clean all

Copyright © Windowsの知識 All Rights Reserved