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.
Comments
Post a Comment