REDHAT7 Configuring local yum, 163 yum, Epel source

Source: Internet
Author: User

All know Redhat no charge, but its Yum service is to charge, do not want to pay for it to configure the Yum source of the good.

First of all, bloggers have not used Redhat before, the first time with Yum pack when prompted what not registered, such as, Balaba a lot of, and then go online to check the relevant information.

However, the most you see is to let the Redhat bring the Yum all off, do not check the dependent unloading, and then wget installation ...

After asking the great God to draw the right way, generally configuring 3 sources is enough:

1. Local Yum source is your local ISO

2. Configure 163 sources

3. Configuring the Epel Source

Configure local Yum Source

1. Create a folder to mount the ISO

mkdir /mnt/cdrom

2. Perform mount

mount -o loop /dev/cdrom /mnt/cdrom

3. Create a local source file and edit it

vi /etc/yum.repos.d/local.repo添加以下代码:[local]name=localbaseurl=file:///mnt/cdromgpgcheck=0enabled=1

4, configuration completed, using Yum install-y vim test can be installed

Configuring 163yum sources

1. Create 163.repo and edit

vi /etc/yum.repos.d/163.repo添加以下代码:[163]name=163baseurl=http://mirrors.163.com/centos/7/os/x86_64/gpgcheck=0enabled=1

2, configuration completed, using Yum install-y vim test can be installed

Configuring the Epel Source
rpm -vih http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm   

REDHAT7 Configuring local yum, 163 yum, Epel source

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.