Package Hold and Audit
Roll back and pin a package version after an upgrade broke production config.
A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
After a routine apt upgrade, nginx changed version and a config directive broke the site. Roll back, pin the version, and prevent future auto-upgrades.
Your tasks:
- Check current version: nginx -v and dpkg -l nginx
- List available versions: apt-cache showpkg nginx
- Hold the package: apt-mark hold nginx
- Verify the hold: apt-mark showhold
- Write the held version string to /tmp/held_version.txt
- Run check to validate