r/linuxadmin • u/Top-Conversation719 • Sep 16 '25
Linux Server as repo of other servers for updates
Hey all,
I have an airgapped network with 3 serverz that I update regularly via a USB SSD without issue. The problem is that the servers are distant from one a other and I was wondering is I could put that USB SSD in the main server and have the others point to this one to get their updates.
I guess the main question is... how do I make the main server in the cluster the repo of the other 2 and possibly othe linux boxes?
What how woukd I write it in their sources.list files?
17
Upvotes
4
u/_the_r Sep 16 '25
What's the source? Already built (Debian?) packages or source code that still needs to be compiled?
3
u/SurfRedLin Sep 16 '25
Setup an apt mirror in the sdd. Then point the other Servers there. There are countless tutorials out there and it's not that hard.
1
u/Top-Conversation719 Sep 30 '25
***Update***
I followed a couple of post here and there but it seems I got stuck. I did the following and can see the directory created on the web browser but I see no packages. Maybe I missed something.
Did I skip a step here?
Every post I seen directs to put the updates in the /var/spool/apt-mirror or someplace else but I'm trying to just point to the USB drive.
4
u/FlashFunk253 Sep 16 '25
You can point them to a filepath of an NFS share or www link.
I would host the repo on the main server, and just do an rsync once a month from the updated USB drive.
1
u/Hotshot55 Sep 16 '25
Are these systems airgapped individually or are they on a network that is airgapped as a whole?
1
u/Severus157 Sep 16 '25
Depends on what you mean.
In our infrastructure we have one server that pulls the main os repositories through the proxy regularly. Then the views of the repo are provided in a delayed manner, once a week promoting for testing environment and then production environment. None of our other servers in the world has direct internet access. We only install and update system from our local repositories.
3
u/hrudyusa Sep 16 '25
Just throwing this out there. The uyuni project was designed to do patch management. It is upstream to Suse Manager. It is heterogeneous, so it supports Debian 12 as well as others. It uses internally salt-stack to manage the clients. Salt , as well as Ansible, Terraform, and others do configuration management as well. This is free open source.
-4
u/ISortaStudyHistory Sep 16 '25
It's air gapped for a reason, yes? Talk to your senior IT manager.
0
u/[deleted] Sep 18 '25
[deleted] — view deleted comment