yum源配置

1、配置centos7yum源

[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

2、运行yum makecache生成缓存

[root@localhost ~]# yum makecache

3、更新

[root@localhost ~]# yum -y update

猜你喜欢

转载自my.oschina.net/u/1993676/blog/1648692