Dear Rocky enthusiasts,
I was wondering if there are any best practice recommendations about how
to sync the packages repos for on premise mirroring.
I don't want to keep a full-fledged copy of the official mirrors 'cause
I don't care about aarch64, source packages, ISOs and kickstart repos
(what are these for, anyway?).
One of the reasons for asking is that I'd like to preserve the metadata
for modular streams. As far as I can tell these are destroyed when the
metadata is recreated using createrepo/createrepo_c.
Another reason is that I'd like to keep only the latest (and perhaps the
previous) version of a package in order to save disk space. If an older
version of a package will ever be needed I'd still be able to fetch that
from a public mirror.
Is using "dnf reposync --arch=noarch --arch=x86_64 --delete
--download-metadata --newest-only --norepopath
--download-path=/path/to/local/repo --repoid=$REPO" the correct approach?
Thanks,
Uwe