On 5/4/24 12:20, Andrei Borzenkov wrote:
On 04.05.2024 22:14, Lew Wolfgang wrote:
Hi Folks,
Is there a way to maintain local copies of the openSUSE repositories? Maintenance includes keeping the local repos up-to-date by downloading only the deltas between the remote and local repos.
I know how to do this using the Red Hat "reposync" program, a part of the yum/dnf package, but it just doesn't feel right having to depend on Red Hat for what would appear to be core functionality.
Note: I can't use rsync due to policy constraints. But web ports 80 and 443 are okay. I know, go figure...
Any thoughts?
SUSE RMT?
I noticed that, but it seemed to be rather complicated and overkill for what I need. I have a few use cases. 1. Local up-to-date copies of the relevant external repos that I can access via NFS from a couple dozen local hosts. NFS access is really FAST for this! 2. The local repos can be virus checked, for what that's worth. 3. I use the local repositories as the source for a process that I run using rsync to create a file containing the deltas to "sneaker net" into an internal subnet without outside network connections. In other words, I have one set of repos that are up-to-date. I have a second set of repos that represent the state of the non-networked repos. rsync can be used to compare the two hierarchies and create a file containing the deltas that can then be moved to and update the repos on the inside. After the process completes, the outside and inside repos are identical. The hosts on the isolated network can then "zypper up" using NFS and be happily updated. I do this once per week or so. The deltas usually fit comfortably on a 32-GB SDcard. Using Red Hat's reposync program I don't have to download hundreds of GB of repo every week, and it's trivially easy to set up. I hope this is all clear, it took me a while to figure out how to do it. Thanks for the pointers! Regards, Lew