How to Change Linux Yum Repository

How to Change Linux YUM Repository
Step 1: Enter the yum configuration directory:

cd /etc/yum.repos.d/

Step 2: Backup the configuration file:

mv CentOS-Base.repo CentOS-Base.repo.bak

Step 3: Download the NetEase mirror configuration (or another repository configuration file):

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

The downloaded file is named CentOS6-Base-163.repo
Step 4: Rename (rename it to the filename required by the configuration)

mv CentOS6-Base-163.repo CentOS-Base.repo

Step 5: Update:

yum update


All done.

Leave a Comment

Your email address will not be published.