How to Set Up a Main Linux Server as a Repository for Other Servers?

0
9
Asked By TechyMoose123 On

Hey everyone! I have an airgapped network with three servers that I update regularly using a USB SSD, and it's been working fine so far. However, these servers are quite far apart, and I'm wondering if it's possible to connect that USB SSD to one main server and let the others pull their updates from it. So, my main question is: how can I configure the main server to act as a repository for the other two servers and possibly other Linux boxes? Also, how should I update their sources.list files?

4 Answers

Answered By LinuxGuru88 On

First off, what's the source of your updates? Are you using pre-built Debian packages or is it source code that needs compiling? You might need to clarify that because the approach could vary based on the type of packages you're using.

USB_Savvy -

I've used apt-mirror to fetch everything onto a USB SSD, and then the other servers just reference it in their sources.list using [file] lines instead of [deb] for local access.

Answered By NetworkNinja99 On

Are these servers isolated from each other, or are they part of a larger airgapped network? Knowing that can help figure out the best way to configure them.

TechyMoose123 -

They're on an airgap network.

Answered By RepoMaster77 On

It really depends on your infrastructure. In my setup, we have one server that regularly pulls the main OS repositories through a proxy, and we provide viewable repos weekly for testing and production without any direct internet access for the other servers. We manage all installations and updates from our local repos.

TechyMoose123 -

I'm looking to have the main server fetch updates from the USB SSD and then handle updates for the other servers remotely without needing to unplug and transfer the drive each time. Basically, I want to centralize the updates from one main server.

Answered By ServerWhisperer45 On

Since it's airgapped, make sure you have a good reason for that setup. Definitely discuss the overall network setup with your IT manager, just to keep everything compliant and secure.

TechyMoose123 -

Actually, I'm the IT manager and handling everything here!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.