How to Create Local HTTP Yum/DNF Repository on RHEL 8

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. Som says:

    I was able to setup the YUM repo on a server VM and then added the path in the repo file in the client VM.

    Now, on the server side, i can install any package and groups.

    On the client side however, only packages can be installed using YUM but listing or installing groups fail.

    ex: yum install httpd works flawlessly on the Client Side.

    However, yum groups list fails and yum group install "Server with GUI" and any other group fails as well.

    Here is the error that i get when i try to list groups on the client VM

    What am i missing here?

    • Ravi Saive says:


      First, register your RHEL 8 to RedHat Subscription, to get the package information.

      • Som says:

        Is the issue of “warning: no environments/groups match” related to subscription?

        I ask cause i was referring RedHat advisory and this is what i found

        Root Cause
        A comps file was not downloaded with reposync command.
        A comps file was not specified in createrepo command.

        Confirm that --downloadcomp option is used for reposync command, since the comps file is used for createrepo command.
        Confirm that -g option is used to specify the downloaded comps file in createrepo command.

        Since i copied all the files using the RHEL ISO, i did not use the reposync CMD to download the comps file, nor did i specify the comps file in the createrepo CMD

        Can you suggest how i can download the comps file and then attach it using createrepo?

        The exact syntax/CMD would be great.

        Thanks :)


    This tip work in centos and fedora?


Leave a Reply to WILSON BEIRIGO DUARTE Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.