When we patch servers with apt-get, we just run apt update
and apt upgrade
, and take whatever updates are available. We patch our dev servers several days before we patch our production servers.
That doesn't always work out as-expected. Any updates released during that week go straight into production without getting tested on the dev servers.
What's the right way to be more precise about the packages and versions that get updated when running apt-get? How do I ensure only burned-in updates make it to the production servers?
Is there a way to export the package versions from the dev server and use it as a manifest for updating in production?