Home > Archives > Centos配置国内源

Centos配置国内源

Publish:

操作步骤:

1
2
3
4
5
6
7
8
9
10
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@localhost yum.repos.d]# lsb_release -a
LSB Version:	
Distributor ID:	CentOS
Description:	CentOS Linux release 7.2.1511 (Core) 
Release:	7.2.1511
Codename:	Core
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
[root@localhost yum.repos.d]# yum makecache

其他

1
[hadoop@localhost yum.repos.d]$ sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

参考资料:

Centos配置国内yum源

声明: 本文采用 BY-NC-SA 授权。转载请注明转自: Ding Bao Guo