Video thumbnail for How to Setup Local YUM / DNF Repository on RHEL 10 | Offline Repo Using ISO (Step-by-Step)

How to Setup Local YUM / DNF Repository on RHEL 10 | Offline Repo Using ISO (Step-by-Step)

Dec 30, 2025

linuxtechi.com

In this video, you will learn how to set up a Local YUM / DNF Repository on RHEL 10 step by step using the RHEL 10 DVD ISO file. This tutorial is extremely useful if you are working in an offline, air-gapped, or restricted environment, or if you want faster package installation without relying on Red Hat online repositories or Subscription Manager. 🔹 What You’ll Learn in This Video ✔️ What is a Local YUM / DNF Repository ✔️ Why Local Repositories are required in RHEL 10 ✔️ How to mount the RHEL 10 ISO file ✔️ How to create BaseOS and AppStream repositories ✔️ How to configure Apache HTTP server for repo hosting ✔️ How to configure client systems to use the local repository ✔️ How to disable subscription-manager and test package installation 🔹 Step-by-Step Guide Covered in This Video Step 1: Mount the RHEL 10 ISO File Mount the ISO file under the /mnt directory and verify it. Step 2: Install Required Packages Install createrepo and httpd for repository creation and hosting. Step 3: Create Local Repository Copy BaseOS and AppStream RPMs Generate repository metadata Enable and start Apache service Allow HTTP through the firewall Verify repository access via browser Step 4: Configure Client Machine Unregister from Red Hat Subscription Manager Create a local .repo file [local-BaseOS] name=Local RHEL10 BaseOS baseurl=http://192.168.1.96/rhel10-repo/BaseOS enabled=1 gpgcheck=0 [local-AppStream] name=Local RHEL10 AppStream baseurl=http://192.168.1.96/rhel10-repo/AppStream enabled=1 gpgcheck=0 Disable subscription-manager plugin Refresh DNF cache Test package installation from local repo 🔹 Commands and Configuration Files Included ISO mount commands createrepo usage Apache HTTP setup Firewall configuration Local repo .repo file configuration DNF cache refresh and testing 👍 If You Found This Video Helpful ✔️ Like the video ✔️ Share it with your Linux and DevOps friends ✔️ Subscribe for more RHEL, Linux, DevOps, Kubernetes, and Cloud tutorials ✔️ Drop your questions in the comments section

View Video Transcript