I would like to ask about best practice how to serve and update private rpm repos (epel, centos, rhel mirror).
I used the reposync
and createrepo
tools to download packages and generate 'repodata', exposed it through webserver, everything works perfect, but ...
What is the best way to update repository ?
Complex way
I was wondering to have symlink in folder structure like this:
/repos/7Server/x86_64/Ref -> /repos/7Server/x86_64/Ref.2016-06-22
So everytime I update repository:
- will create copy
- sync it with upstream
- regenerate metadata
- point symlink to most recent version
- delete old version (folder)
Metadata will alway match packages and the repository will be in consistent way.
Easy way
But in every documentation I found, people just do simple reposync
with delete and update new packages parameter. Don't care about any incosistent state for the clients.
So I am just wondering, which way ist the best, because the simple method can save some time, disk io, configuration & automation complexity.
Thanks for any help.