Local installation configuration RHEL7 source yum - yum when not installed, installed locally, pro-test success

RHEL7 local yum source configuration
we generally do not fill out the registration information when installing Redhat, because the product is to be purchased, so we use the installed Redhat some features are limited, use yum install is one source one. So we want to use yum how to do it? Then we need to configure yum source locally down to see how to configure?

After installing Redhat we use the root account login, start configuring yum source.

1, the installation we use redhat iso disc mount to / mnt directory
[root @ localhost ~] # mount -t iso9660 -o, loop / dev / sr0 / mnt

2, switch to the /etc/yum.repos.d/ directory, create a file rhel7.repo


rhel7.repo document reads as follows
name = rehl7 # names can customize
baseurl = file: /// mnt # Step 1 Mount path to the local CD-ROM
enabled = 1 # Enable yum source, 0 is not enabled, 1 to enable
gpgcheck = 0 # check GPG-KEY, 0 is not checked, a check is

 

3, check whether the local yum source configuration is successful
through the configuration steps one and two, local yum source configured successfully, we simply down to test
yum clean all yum Clear cache
yum makecache local cache source yum


yum list Test
1


Local yum source configuration successful! ! !
---------------------
Author: csdn_ ordinary code husband
Source: CSDN
Original: https: //blog.csdn.net/csdn_wangchong/article/details/79591811
Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/linuxandy/p/11300708.html