Home > Article > Operation and Maintenance > centos replace yum source
Centos source is changed to 163 or Alibaba.
1. Backup first
mv /etc/yum.repos.d/Centos-Base.repo /etc/yum.repos.d/Centos-Base.repo.backup
2. Download the repo file to the directory
cd /etc/yum.repos.d
wget
3. yum clean all //Clear cache
yum makecache //Generate a new cache
163 and aliyun mirror:
The above is the detailed content of centos replace yum source. For more information, please follow other related articles on the PHP Chinese website!