Configuration of Yum Server Locally Using Repo In RHEL 7

Configuration of Yum server stands for Yellowdog updater modifier (YUM) is an open-source CLI based package management tool to install rpm based software in Server. We can create a repo and install a yum server repository in Linux.

Configuration of Yum Server Locally In RHEL 7

Install Yum Server I’m using VMWare to Perform this task, The benefit of Yum Server is this will automatically install the dependencies of a package.

Step 1. You need to mount the DVD to a specified location. The package folder will be disappeared when you reboot the machine if you have installed it in /mnt directory.

Check Out: What’s New In Redhat 8 Beta Version

create yum repository server

mount /dev/cdrom /mnt

 install repo in linux

mv -v /mnt/packages /mnt/

In this /mnt folder the packages will be permanent stored that is why you have to move the packages. 

Check Out: How To Create a Branch In Git

Step 2. You can check where is mounted the files

I moved the packages folder as it does not mount permanently you have to move the Packages folder.

mkdir /pankaj

Step 3. Now you have to install some dependencies to run the createrepo Commands

These are important packages for YUM Server installation as it is used to create the Createrepo Command.

Check Out: Useful Commands Of Firewall

Then “Enter”.

Step 4. You have to build up a repo for the packages.

createrepo -v /pankaj/Packages/

repository in linux

Create a Repo File:

Step 5. Now you have to make a repo file wherefrom it will pick the packages to install

Note: .repo is must at the end of the file name otherwise it will work.

Eg: abc.repo

You can see I made a file inside this location with server.repo

how to create local repository in rhel 7

Go to the location cd /etc/yum.repos.d/ then make a file with .repo extension.

Check Out: How To Send Root Mail To a User On Redhat

Step 6. Now it’s time to configure the server.repo file as of this you will be able to install the Packages.

This file should be configured properly otherwise it will not work anymore. I have already configured the file.

Press the Insert button on the keyboard to write.

Check Out: Enable EPEL Release Repository

name= "Server info software"
baseurl= file:///pankaj/Packages

Do not forget to save this file by typing at the end of wq!

Step 7. yum clean all.

how to configure yum repo server in linux

That’s it. repository in linux install repo in linux create yum repository server

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment