CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Centos6.5更换163源 epel源大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

Centos6.5更换163源 epel源 转自:http://www.voidcn.com/article/p-ujssnuzj-bev.html     想必大家都遇到过,安装新的centos系统,使用yum去安装软件的时候,要么找不到,要么慢的让人发疯。     网上其实办法很多,直接更换163源就ok,但是基本所有的文章都是直接wget下163的源,但是不知道为什么,wget下来的repo

Centos6.5更换163源 epel源

转自:http://code.js-code.com/article/p-ujssnuzj-bev.html


想必大家都遇到过,安装新的centos系统,使用yum去安装软件的时候,要么找不到,要么慢的让人发疯。

网上其实办法很多,直接更换163源就ok,但是基本所有的文章都是直接wget下163的源,但是不知道为什么,wget下来的repo文件各种不好使,还得自己修改一下。这里,我把自己修改好的源复制到这里,大家换源的时候直接复制粘贴就OK了。

1
2
3
4
5
6
7
8
9
10
11
@H_696_54@ 12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[base]
name=CentOS-$releasever-Base-163.com
baseurl=http: //mirrors .163.com /centos/ $releasever /os/ $basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http: //mirror .centos.org /centos/RPM-GPG-KEY-CentOS-6
@H_673_159@#releasedupdates
[updates]
name=CentOS-$releasever-updates-163.com
/updates/ $basearch/
@H_673_159@#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
/centos/RPM-GPG-KEY-CentOS-6
@H_673_159@#additionalpackagesthatmaybeuseful
[extras]
name=CentOS-$releasever-Extras-163.com
/extras/ $basearch/
@H_673_159@#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
/centos/RPM-GPG-KEY-CentOS-6
@H_673_159@#additionalpackagesthatextendfunctionalityofexisTingpackages
[centosplus]
name=CentOS-$releasever-Plus-163.com
/centosplus/ $basearch/
@H_673_159@#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
/centos/RPM-GPG-KEY-CentOS-6
@H_673_159@#contrib-packagesbyCentosUsers
@H_957_262@ [contrib]
name=CentOS-$releasever-Contrib-163.com
/contrib/ $basearch/
@H_673_159@#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=

不知道大家喜欢怎么使用,我一般直接把系统自带的CentOS-Base.repo文件清空,然后将以上内容复制粘贴进去就OK。

OK,163源就这样。


当然,还有另外一种办法:

7
@H_474_301@
cd /etc/yum .repos.d/
@H_48_325@mv CentOS-Base.repoCentOS-Base.repo.old
wgethttp: .163.com/.Help /CentOS6-Base-163 .repo
CentOS6-Base-163.repoCentOS-Base.repo
cd
yumcleanall
yummakecache


便,把添加epel源的方法也放在这里

1

大佬总结

以上是大佬教程为你收集整理的Centos6.5更换163源 epel源全部内容,希望文章能够帮你解决Centos6.5更换163源 epel源所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。