Configuration of Yum Server Locally 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
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.
Check Out: What’s New In Redhat 8 Beta Version
mount /dev/cdrom /mnt
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.
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
Step 4. You have to build up a repo for the packages.
createrepo -v /pankaj/Packages/
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.
You can see I made a file inside this location with server.repo
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
[Packages] name= "Server info software" baseurl= file:///pankaj/Packages enabled=0 gpgcheck=0
Do not forget to save this file by typing at the end of wq!
Step 7. yum clean all
That’s it repository in linux install repo in linux create yum repository server