Configure Local Yum repos

Rajesh
2 min readApr 2, 2023

KODEKLOUD-ENGINEER TASK

The Nautilus production support team and security team had a meeting last month in which they decided to use local yum repositories for maintaing packages needed for their servers. For now they have decided to configure a local yum repo on Nautilus Backup Server. This is one of the pending items from last month, so please configure a local yum repository on Nautilus Backup Server as per details given below.



a. We have some packages already present at location /packages/downloaded_rpms/ on Nautilus Backup Server.

b. Create a yum repo named local_yum and make sure to set Repository ID to local_yum. Configure it to use package's location /packages/downloaded_rpms/.

c. Install package samba from this newly created repo.

First , I tried to install samba without creating local_yum repo, It shows no yum repository is there to install samba.

Now creating repo called local_yum in yum.conf

Where repository id set to local_yum and baseurl is set to the location provided in the task. Enabling the repo by using enabled=1.

baseurl is the source providing binaries to install the required packages. here, i am providing baseurl from my local system. So, I am using file:// to fetch the binaries.

For example: If i install samba, then it will fetch the binary from the baseurl and install the samba package using that binary.

Now , Installing Samba From the local_yum Repo

It installed SUCCESSFULLY!!!!

Thanks for seeing the short article , Have a nice day !!!!!!!

--

--