Friday, October 4, 2019

How To Configure Local YUM Server In RHEL 7

 How To Configure Local YUM Server In RHEL 7

Step.1.create a directory

#mkdir -p /var/ftp/pub/

Step.2.copy iso image 

#cp -rvf * /run/media/root/RHEL7/ /var/ftp/pub/

step.3.Go To Repo directory.

#cd /etc/yum.repo.d/
Create a blank file .repo extension
#touch server.repo
Edit file and write it
#vi server.repo
Press i to write someting 
[server]
Name=localyumserver
baseurl=file:///var/ftp/pub/
gpgcheck=09

Press ESC and :(colun) and wq to save and exit.


Note:-
name=you can write any name.
Baseurl=local find file
gpcheck =0 (0 indicate the rpm is disable and 1 it indicate the rpm is disable)

Step.4.clean yum sever

#yum clean all

Step.5.check it.

#yum repolist all
Display approx 4100 file.

Thank you.

No comments:

Post a Comment

HOW TO TO CALCULATE TABLE SIZE IN MB AND CREATE EXCEL SHEET IN MYSQL 5.7 USING CENTOS 7

 HOW TO TO CALCULATE TABLE SIZE IN MB AND CREATE EXCEL SHEET IN MYSQL 5.7 USING CENTOS 7 1.Given command below:- SELECT       table_schema a...