yum source configuration

1. Configure the centos7yum source

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

2. Run yum makecache to generate the cache

[root@localhost ~]# yum makecache

3. Update

[root@localhost ~]# yum -y update

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325204048&siteId=291194637