To continue our Yum tool application journey, the Yum tool is convenient because there is a convenient online cloud library, we may not be able to link the Internet in the actual work, or we want to install the program of the original source so can we use other ways to apply the convenient yum sources?
First, use the CD as a Yum source
1. Attach the CD to the/MNT directory
2. Create a new Dvd.repo under the/etc/yum.repos.d/directory
Then edit this file
[DVD]
Name=install DVD
Baseurl=file:///mnt
Enabled=1
Gpgcheck=0
Write in the above content
3, clear the cache, redo cache
Yum Clean All
Yum Makecache
De-semantic characters ^ ^
Second, the replacement of domestic warehouses
1. Backup/etc/yum.repos.d/centos-base.repo
I replaced his name, in fact, with the MV command in the file name Shang add a. bak.
2, download the domestic mirror station's repo file
Command: curl -O http://mirrors.163.com/.help/CentOS7-Base-163.repo
(Note you will be in the/etc/yum.repos.d/directory, not on the CD past)
3, clear the cache, redo the cache, the same as above, do not put the map
4. Use Yum repolist to see the update
It's done.
Third, install the extension source Elelrepo
In addition to the usual official sources, we also need to install some additional sources, increase the number of RPM packages, commonly used is the source of Epel.
1. Install Epel source
Command: Yum install Epel-release
Yum downloads the RPM package and provides it to other computers.
Linux System program installation (ii) YUM tool 2-yum source management