How to Configure Yum Server using local Directory in Redhat / Centos / Fedora

Share on :

How to configure Yum Server using local Directory in Redhat / Centos / fedora


To Create Yum Server you will need a bootable cd/dvd/usb of Redhat or Centos or Fedora. Follow the Steps Below to configure yum server.

1 ) Insert your bootable cd/dvd/usb of  Redhat / Centos / fedora  :-

Now in your cd/dvd/usb you will find a directory called Packages.
we need to copy that directory to / or any where you want . I am going to copy it in / .
#cp  -prv   Packages   /Packages          

after copying is complete , then you can eject your cd/dvd/usb .                      

2 ) Now just create repo in your Package Directory :-

#createrepo  -v  /Packages

3 ) Now we need to give the yum path in /etc/yum.repos.d directory :-

#cd  /etc/yum.repos.d/ 
if you have any repo file in /etc/yum.repos.d directory just remove it or disable it.
now just create a repo file in /etc/yum.repos.d directory.
#vim  local.repo


save and quit the local.repo file.

4 ) Now our Yum server is ready to install packages  : -

#yum  clean  all
#yum install vsftpd
The Video below is a Detailed Explanation of the above commands :-

Share on :

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *