yum replace the domestic source:
First enter yum.repos.d and delete the local repository.
Then re-download a source, you can use
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo (use curl below without this command)
or
curl -O http://mirrors.163.com/.help/CentOS7 -Base-163.repo
Then vim cottos7-base-163.repo can view the source file address
yum list to view new repositories
Install an extension source:
The core file epel-testing-repo after installing the extension source
yum download rpm package:
updates here is the repository name
View: ls /var/cache/yum/x86_64/7/ (plus warehouse name) /packages/ = the storage directory of the installation package after downloading
After --downloadonly, add a parameter --downloadonly=/directory to be stored/
yum reinstall -y package name --downloadonly --downloaddir=path Reinstall an already installed package
Source package installation:
It is agreed that all source code packages are stored in the directory: cd /usr/local/src/
If there is a problem with the download, such as 404 indicating that the URL has expired, you can go to r.amingliux.com to find a new download address
Website www.r.aminglinux.com
But use tar to decompress the source package
You can read more README to view the documentation.
The last command was wrong, install a gcc
After the installation is complete, you can re-execute the first step to reinstall the installation files
After installation, use make to perform a test on the file, and the test determines the time according to the configuration of the computer.
Use echo $ after detection? Check if the previous command is correct
Extension:
1. Configure yum source priority http://ask.apelearn.com/question/7168
2. Package source package into rpm package http://www.linuxidc.com/Linux/2012-09/70096.htm