Home  >  Article  >  Operation and Maintenance  >  centos replace yum source

centos replace yum source

PHP中文网
PHP中文网Original
2017-06-20 09:34:451980browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn