On 04/05/2024 20: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?
Regards, Lew
As Andrei said, the tool for this RMT. I have been using it for a few years to keep local copies of Leap repos:
rmt-cli repos custom list +-------------------+--------------------+---------------------------------------------------------------+---------------+--------------+-------------------------+
| ID | Name | URL | Mandatory? | Mirror? | Last Mirrored | +-------------------+--------------------+---------------------------------------------------------------+---------------+--------------+-------------------------+
| dist153oss | dist153oss | http://download.opensuse.org/distribution/leap/15.3/repo/oss/ | Not Mandatory | Don't Mirror | 2023-04-20 01:40:44 UTC | | dist154oss | dist154oss | http://download.opensuse.org/distribution/leap/15.4/repo/oss/ | Not Mandatory | Mirror | 2024-05-05 04:08:43 UTC | | dist155oss | dist155oss | http://download.opensuse.org/distribution/leap/15.5/repo/oss/ | Not Mandatory | Mirror | 2024-05-05 04:19:12 UTC | | opensuse152dist | opensuse15.2dist | http://download.opensuse.org/distribution/leap/15.2/repo/oss/ | Not Mandatory | Don't Mirror | 2022-06-12 00:08:38 UTC | | opensuse152update | opensuse15.2update | http://download.opensuse.org/update/leap/15.2/oss/ | Not Mandatory | Don't Mirror | 2022-06-12 00:10:12 UTC | | tw_non-oss | tw_non-oss | http://download.opensuse.org/tumbleweed/repo/non-oss/ | Not Mandatory | Don't Mirror | 2024-02-08 06:30:03 UTC | | tw_oss | tw_oss | http://download.opensuse.org/tumbleweed/repo/oss/ | Not Mandatory | Don't Mirror | 2024-02-08 06:29:58 UTC | | tw_update | tw_update | http://download.opensuse.org/update/tumbleweed/ | Not Mandatory | Don't Mirror | | | updt153backports | updt153backports | http://download.opensuse.org/update/leap/15.3/backports/ | Not Mandatory | Don't Mirror | 2023-04-20 01:31:35 UTC | | updt153oss | updt153oss | http://download.opensuse.org/update/leap/15.3/oss/ | Not Mandatory | Don't Mirror | 2023-04-20 01:29:56 UTC | | updt153sle | updt153sle | http://download.opensuse.org/update/leap/15.3/sle/ | Not Mandatory | Don't Mirror | 2023-04-20 01:29:45 UTC | | updt154backports | updt154backports | http://download.opensuse.org/update/leap/15.4/backports/ | Not Mandatory | Mirror | 2024-05-05 04:10:25 UTC | | updt154oss | updt154oss | http://download.opensuse.org/update/leap/15.4/oss/ | Not Mandatory | Mirror | 2024-05-05 04:09:30 UTC | | updt154sle | updt154sle | http://download.opensuse.org/update/leap/15.4/sle/ | Not Mandatory | Mirror | 2024-05-05 04:14:59 UTC | | updt155backports | updt155backports | http://download.opensuse.org/update/leap/15.5/backports/ | Not Mandatory | Mirror | 2024-05-05 04:21:45 UTC | | updt155oss | updt155oss | http://download.opensuse.org/update/leap/15.5/oss/ | Not Mandatory | Mirror | 2024-05-05 04:20:04 UTC | | updt155sle | updt155sle | http://download.opensuse.org/update/leap/15.5/sle/ | Not Mandatory | Mirror | 2024-05-05 04:24:41 UTC | +-------------------+--------------------+---------------------------------------------------------------+---------------+--------------+-------------------------+
In the list above, I have included Tumbleweed but I do not mirror it yet - that's a future plan. Your use case for an air-gapped network is explicitly described with an example in section 4.7 of the RMT Guide, found here https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-rmt-mirroring.h... Yes, it did take a little figuring out but it works very reliably. Graham.