Configuration yum source (local, shared) in LINUX

Configure the local yum source

Experiments are as follows:
(1) First, we need to give this a virtual machine configuration ip address
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
virtual machine IP configuration
(2) to upload the desired image to the main building yum source (I use the redhat7.3 version, so also mirrored version 7.3)

Providing a source image is the file package, a general image file iso linux system built to contain the required source yum rpm files.
In this piece I used a mirror is mounted way
Note: CD-ROM mount, mount host must be shut down
(1) The first step in the first image is downloaded from the real host to the virtual machine configured above
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
(2) step optical drives, double niode2, click on the light bulb, the following interface, click add hardware
Here Insert Picture Description
Here Insert Picture Description
if the optical disc set, yum source host to build the following screen appears:
Here Insert Picture Description
(3) a third step of mount
Here Insert Picture Description
and then hung to mount upload mirror
Here Insert Picture Description
Here Insert Picture Description
(4) yum source editing configuration files
/etc/yum.repos.d/ delegation is set to file yum source
settings file must end repo
Here Insert Picture Description
Here Insert Picture Description
writing to a file inside;
Here Insert Picture Description
see if you can in your browser to search this local path:
Here Insert Picture Description
(5) testing:
Here Insert Picture Description
Here Insert Picture Description
installation dhcp
Here Insert Picture Description
Here Insert Picture Description

Share yum source to build

Shared yum source that you set up on a host good yum source, others can access and use (use if you want to set the file locally yum sources, the will find the software path written in the network path that is shared type yum source path)
shared yum source type, you need to open http service, turn off the firewall.
Experimental follows;
(1) install and start the http service
Here Insert Picture Description
Here Insert Picture Description
open service http:
Here Insert Picture Description
(2) into the shared directory, the mirror mount
Here Insert Picture Description
(3) turn off the firewall
Here Insert Picture Description
(4) test;
Here Insert Picture Description
permanently mount the mirror:
Here Insert Picture Description
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_43592835/article/details/89520417