How to Setup Yum/DNF Local Repository on RHEL 9 Step-by-Step
In this video tutorial, I'm going to show you how to set up a local YUM/DNF repository on RHEL 9 System. First of all, what is a local YUM/DNF repository, and why would you want to setup local repository ? Well, a local repository is a collection of RPM packages that you can use to install or update packages on your system without having to connect to the internet. This is useful if you have multiple servers that need to be updated, or if you have limited bandwidth or no internet connection at all. ####### Steps to setup local yum/dnf repository ######## 1) Install createrepo and httpd sudo dnf install createrepo httpd -y Remove the subscription sudo subscription-manager unregister 2) Create a folder for local repositroy sudo mkdir -p /var/www/html/localrepo 3) Mount RHEL 9 / 8 ISO file on /mnt