Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
February 15, 2022 01:36 pm GMT

Create a YUM server for RHEL 7.5 using its ISO file

This document is to create a YUM server using RHEL installer ISO file.

  • Install a RHEL VM with 2 GB RAM, 1 vCPU and 80 GB HDD.

  • Create a repository folder inside VM

mkdir -p /rhel75/repo
  • Mount the ISO using mount command and copy the Packages folder into your repository folder
cp /run/media/vcloud/RHEL-7.5\ Server.x86_64/Packages/* /rhel75/repo/
  • Install createrepo package if it is not installed during OS installation
cd /rhel75/reporpm -ivh createrepo-0.9.9-28.el7.noarch.rpm
  • Create repository
createrepo /rhcelab/repo/
  • Clean YUM cache
yum clean all
  • Update the rhcelab.repo file to point to your local repository folder
vi /etc/yum.repos.d/rhcelab.repo[rhcerepo]name=rhcerepobaseurl=file:///rhel75/repo/enabled=1gpgcheck=0
  • List the repolist
yum repolist
  • For testing, try to install any package
yum install redhat-lsb

Original Link: https://dev.to/ashishchorge/create-a-yum-server-for-rhel-75-using-its-iso-file-38hm

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To