Creating Local Yum Repository on RED HAT or CentOS

Lets look at the steps required to setup local yum repository. We will create local repo called demolocal. We will then copy single package iperf3-3.0.11-1.fc22.x86_64.rpm as an example and install it from our demolocal repo.

Lets create directory called /var/local

#mkdir -p /var/local

Now we will download package called iperf3-3.0.11-1.fc22.x86_64.rpm into this directory