Linux (Centos7) configuration replacement 163yum source

1. Back up the original image file first

cp -r yum.repos.d/ yum.repos.d.backup

insert image description here
2. Download the new one CentOS-Base.repo to/etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

insert image description here
3. Replace each of baseurlthe following with , replace with$releasever7$basearchx86_64

insert image description hereinsert image description here

3. Clear the original yum cache

yum clean all

insert image description here
4.yum makecache

yum makecache

Guess you like

Origin blog.csdn.net/dontYouWorry/article/details/129023898