Download Linux updates now and install only those updates later
0
votes
1
answer
315
views
I'm using Almalinux 9 and dnf, but RHEL, CentOS, or similar would work the same. Is there a correct way to download updates at one point in time and then install at a later time? I have dev/test servers and prod servers. I would like for the dev/test servers and prod servers to download updates at the same time. That's no problem. I schedule
dnf upgrade --downloadonly /my/cached/updates -y
and I have all the RPM files in a single directory, and it's the same RPMs on dev/test and prod. Now let's say I want my dev/test servers to install upgrades at the same time that they download them, but I want my prod servers to wait a full week before install. I don't ever want to install anything on my prod system that hasn't been installed and tested in dev/test first. So I don't want any new updates in prod that may have been released during the week after I upgraded dev/test but before I upgrade prod.
Should I simply run dnf install /my/cached/updates/*.rpm -y
on prod a week later or is there a better way of going about all of this?
Asked by b_laoshi
(131 rep)
Dec 10, 2024, 09:40 PM
Last activity: Dec 11, 2024, 12:22 AM
Last activity: Dec 11, 2024, 12:22 AM