CentOS changes yum source and update system
[1] First backup /etc/yum.repos.d/CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/ CentOS-Base.repo.backup
[2] Enter the folder where the yum source configuration file is located
[root@localhost yum.repos.d]# cd /etc/yum.repos.d/
[3] Download the yum source configuration file of 163, Put it in /etc/yum.repos.d/ (please make a corresponding backup before operation)
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163 .repo
[4] Run yum makecache to generate cache
[root@localhost yum.repos.d]# yum makecache
[5] Update system
[root@localhost yum.repos.d]# yum -y update
[6] Install vim editor
[root@localhost ~]# yum -y install vim*
CentOS changes yum source and update system
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326548446&siteId=291194637
Recommended
Ranking