|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!- Howtochangeyourepositorytoenjoythefastinstallspeed?copythefollowingcodes:
复制代码 #CentOS-Base.repo
#
#ThisfileusesanewmirrorlistsystemdevelopedbyLanceDavisforCentOS.
#ThemirrorsystemusestheconnectingIPaddressoftheclientandthe
#updatestatusofeachmirrortopickmirrorsthatareupdatedtoand
#geographicallyclosetotheclient.YoushouldusethisforCentOSupdates
#unlessyouaremanuallypickingothermirrors.
#
#Ifthemirrorlist=doesnotworkforyou,asafallbackyoucantrythe
#remarkedoutbaseurl=lineinstead.
#
#
[base]
name=CentOS-$releasever-Base
baseurl=http://mirrors.sohu.com/centos/6.5/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
#releasedupdates
[updates]
name=CentOS-$releasever-Updates
baseurl=http://mirrors.sohu.com/centos/6.5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
#packagesused/producedinthebuildbutnotreleased
#[addons]
#name=CentOS-$releasever-Addons
#baseurl=http://mirrors.sohu.com/centos/$releasever/addons/$basearch/
#gpgcheck=1
#gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
#additionalpackagesthatmaybeuseful
[extras]
name=CentOS-$releasever-Extras
baseurl=http://mirrors.sohu.com/centos/6.5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
#additionalpackagesthatextendfunctionalityofexistingpackages
[centosplus]
name=CentOS-$releasever-Plus
baseurl=http://mirrors.sohu.com/centos/6.5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6- savedasafilenamedCentOS-Base.repounderthedirectory:/etc/yum.repos.d(makesurethat.repofilesonlyincludeCentOS-Base.repo;CentOS.Debuginfo.repo;CentOS-Vault.repoandCentOS-Media.repo)
复制代码 CentOS-Base.repo是yum收集源的设置文件
[/code]CentOS-Media.repo是yum当地源的设置文件
andthendownloadandimportthekeyusingthefollowinglines
wgetmirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-6
rpm--importRPM-GPG-KEY-CentOS-6
thenenjoythefastspeedofyum!
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们! |
|