Interview Prep/Linux/Packages, kernel and boot

You need to upgrade a server from RHEL 8 to RHEL 9 (or Ubuntu 22.04 to 24.04). In-place or rebuild? Plan it.

AdvancedScenarioPackages, kernel and boot
Answer

Situation read → Major upgrades are risky; rebuilding is often cleaner.

What I'd do →

  1. Preferred: build a new RHEL 9 server from code (Terraform + Ansible), migrate data, swap traffic.
  2. If in-place is required:
    • RHEL: leapp preupgrade, fix inhibitors in /var/log/leapp/leapp-report.txt, then leapp upgrade and reboot.
    • Ubuntu: sudo do-release-upgrade after full update.
  3. Snapshot the disk before starting; test on a clone first.
  4. Verify services, SELinux contexts and custom repos after.

Why → Rebuilds give a clean, reproducible host; in-place carries old cruft but keeps the IP and identity.

Interview tip → Saying "snapshot first, test on a clone" is what interviewers want.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot