We have now moved from centos7 to centos8 and the method no longer works.Please read the last line in bold first!
Effectively we made a “mrepo” repository copy for all the online repos we needed (centos, epel etc etc). (We had to do that anyway due to our servers not being on the internet). <of course only 64 bit repos>.
Each mrepo folder was placed under its own folder in /var/web/html/pub/centos7repos/. (if we were online we could have had a daily script that automatically mrepo’d from online repositories to /var/web/…/centos7repos/.
We then injected errata into those /var/…/centos7repo/repositories using the Generate_updateinfo.py method.
Of course this script relies on the great work done by “http://cefs.steve-meier.de/”)
I think the example given at GitHub - vmfarms/generate_updateinfo is overly complicated.
It is a three step process
- download errata.latest.xml.bz2
- generate updateinfo.xml using Generate_updateinfo.py and errata.latest.xml.bz2
- inject updateinfo.xml into /var/…/centos7repo/
We then created repositories in forman but rather than point to https://centsos.org… etc we pointed to our own local server http:///pub/centos7repo/epel http:///pub/centos7repo/baseos etc etc. Remember folks disk space is CHEAP, I don’t want to hear "oh you could have two copies of the same file on the same server …it is soooooo wasteful, urghuh! "
One thing I remember, because I cant program in “py” (python?), I had to disable checks to get it to work. I changed references from centos6 to 7.
However soon as it worked we moved to centos8 …I have to say I never did any integrity checking on whether it worked properly due to the sudden change of OS
#tTwoCopiesOnTheSameServer