Interview Prep/Linux/Packages, kernel and boot

Your servers can't reach the internet but need packages. How do you provide repositories?

IntermediateScenarioPackages, kernel and boot
Answer

Situation read → Internal mirror.

What I'd do →

  1. On a host with internet, sync repos: dnf reposync --repoid=baseos --download-metadata -p /srv/repos (or apt-mirror/aptly for Debian).
  2. Serve /srv/repos with nginx.
  3. Point clients at it in /etc/yum.repos.d/internal.repo with gpgcheck=1.
  4. Schedule syncs and keep dated snapshots for reproducibility.

Why → Faster, controlled, works offline, and lets you freeze a known-good repo state.

Interview tip → Mention Pulp, Satellite, Artifactory or Nexus as production-grade options.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot