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