Linux System program installation (ii) YUM tool 2-yum source management

Source: Internet
Author: User
Tags yum repolist

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.