CentOS 7 update source-use 163 yum source in China
Suddenly think of Docker, installed CentOS 7 on a computer, ready to start, suddenly think of another thing, change the source, or the installation will be very slow, search online, there are many articles, but there may be some problems, so write down your success logs and share them with you. The steps for searching articles are the same, but the network cannot be connected when the command is run. It may be that the source of the original article has been removed and updated. For the 163 source I use, follow these steps:
Open 163 source site: http://mirrors.163.com/.help/centos.html directly
Follow the instructions to back up the source (use the following command to rename the original source. If there is an error, change it back ):
Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup
Go to the source directory:
Cd/etc/yum. repos. d/
Download the source from your own version. For CentOS 7, run the following command:
Wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
Run the following command to generate the cache:
Yum clean all
Yum makecache
That's easy. continue to enjoy CentOS 7 !!!!!
For more YUM tutorials, see the following:
RedHat 6.2 modify yum source in Linux use CentOS source for free
Configure the epel yum Source
Redhat local yum source configuration
Description of yum configuration file
Install yum in RedHat 6.1)
YUM installation and cleaning
Build yum local source on CentOS 6.4