Comments on How to Create a Local Red Hat Repository

There are many reasons you may want a local Red Hat Enterprise Linux repository. Bandwidth is a major factor as downloading updates from the Internet can be time and bandwidth consuming. Whatever your reason, this tutorial will walk you through the process of getting your local repository setup.

6 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Fmo

I would strongly suggest to use createrepo_c as it is much faster and consumes a lot less memory.

By: christensen143

Thanks for the suggestion. I've actually never heard of createrepo_c before you mentioned and found some speed comparisons here:

https://fedorahosted.org/createrepo_c/wiki/SpeedComparison

It is significantly faster. I will have to test it out and get back to you on it. Thanks for the suggestion!

By: dude

or rsync from a mirror. no need to use create repo then. https://wiki.centos.org/HowTos/CreateLocalMirror

By: Jeff

To make the script executable the proper permissions are 700

chmod 700 /usr/local/bin/update-repository.sh

By: Rahul

Team,

Is it legal to use RHEL 7 without subscription and using local repository to update the rhel patches & kernel ?

By: pvman

I hate to be specific to my circumstances, but I am trying to setup a few repositories for RHEL 6/7 and Oracle Linux 7/8.  My systems are on an isolated network.  My enterprise supplies me with a full patch set frozen sometime in the past and deltas for each month. I'd like to avoid setting up a web server on my network.  My plan is to simply add the provided patch sets to my NFS server that my Linux clients already mount.  I'm a little confused as to how to setup the directory structure to properly use the $releasever-$basearch references for all the types of patch categories (i.e., base, optional, epel, updates, etc.).

Any resources you can suggest to guide me?  Most everything I read wants to 1.) setup a web server, and, 2.) does not really address mixing all the patch categories in one repository or address how to setup several repositories that may include different distributions (CentOS, RHEL, Oracle, etc.).Maybe I'm missing the forest for all the trees in my way.