Creating a Local Yum Repository(Not connected to Internet)---FTP

Latest response

I am trying to mirror/create a Redhat enterprise yum repository(That will Not be connected to the Internet). But continuously update the repository Not connected to the internet.

With the Internet connected server.....Using Redhat help "How to create a local mirror of the latest update for Red Hat...without using Satellite server" encountered 2 issues
I have reposync the rhel-7-server-rpms. 1. Followed the above to the second >> createrepo -v /var/ftp/pub/repo-id/ -g comps.xml (Error groupfile...comps.xml cannot be found)
2. What is the best way mirror/transfer the Internet connected rpms(above) to my network repository(NOT connected to the internet)?

Responses

Ricardo, regarding the "comps.xml" failing, use -g /use/the/full/absolute/path/to/the/comps.xml

I see from your original post that your network repository system is not connected to the internet.

Format an external drive (usb probably) with XFS (assuming you have a public facing Linux system).

BEFORE transferring the channel to your external drive, run hardlink -cv /path/to/the/channel/you/did/a/reposync which will "de-duplicate" any duplicate rpms with hard links. In your specific case, this may or may not actually reduce the footprint of an individual channel.

When I do a content export of 1.7TB from our satellite server, I reduce it from 1.7TB to about 270GB with this hardlink -cv /path/to/the/content/export because exports are horrifically overstated in a storage footprint.

IMPORTANT. When you use rsync to send it to an external drive, use the -H option in the rsync to PRESERVE hard links, or the whole thing will expand out to whatever it was before you did your de-duplication. So rsync -H -au --progress /path/to/channel /mounted/external/drive/path/ -- and once again, use the -H option when you take it off the external drive and rsync it to your non-internet-connected repository server.

Regards

RJ

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.