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 →
- On a host with internet, sync repos:
dnf reposync --repoid=baseos --download-metadata -p /srv/repos(orapt-mirror/aptlyfor Debian). - Serve
/srv/reposwith nginx. - Point clients at it in
/etc/yum.repos.d/internal.repowithgpgcheck=1. - 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.
More on Packages, kernel and boot
You must upgrade the kernel on 50 production servers and be able to roll back if the new kernel misbehaves. Plan it.AdvancedYou need to pin a package version so routine updates don't upgrade it (e.g. Docker or PostgreSQL). How?BeginnerA package update broke an application. How do you roll it back?IntermediateYou need to compile and install software from source on a server that also uses packages. How do you avoid making a mess?IntermediateYou need to change kernel boot parameters (e.g. add `transparent_hugepage=never`) persistently. How?IntermediateA server must apply kernel security patches without rebooting. What are your options?Advanced