To create a local yum repo, all you need to do is to make sure the packages are available in a path in the server, say /downloaded_packages/
Now, create a repo file. Be default, all repo files are present in the path /etc/yum.repos.d/ . I am going to name my repo as local_yum, so I will create a repo file named local_yum.repo and add the following contents in it.
[local_yum]
name=local_yum
baseurl=file:///downloaded_packages/
gpgcheck=0
enabled=1
The above files tells the programme to take the packages from the baseurl mentioned in the file, which in our case is our local folder /downloaded_packages/
Now check if our repo is listed correctly. In my case, I have not set any other repos, so only my local repo is listed...
Read More
Recent Comments