- You have a repository on your own machine
- You don’t need an internet connection to install packages on you machine.
- Your local repository is consistent and consistent for package installation or re-installation.
First of all you need to have an installation media, either a DVD or an iso image.
Mount these media on any directory on your machine.
- $mount -o loop -t iso9660 file.iso /mnt/iso
- $cp -rvf /mnt/iso/* /yum
Now making a .repo File :
- $cd /etc/yum.repos.d
- $vi rhel.repo
Once you are done with your .repo file. You are good to go with your YUM utility. Just run a simple command to check whether it’s working or not.
If every thing goes fine you will see a list of packages in your YUM repository.If anything goes wrong then ping me, I’ll be more than happy to help you.
Till then keep reading, keep sharing.