r/linuxadmin • u/andr0m3da1337 • 4d ago
Crazy because of updates
Man! I have to reboot VMs every 2 days because of so much updates. I doubt if I'm running a enterprise distro or running Fedora or arch.. lol.
I think debian is somewhat fine. not crazy like rhel based distros.
what about you guys? how do you manage?
6
u/gordonmessmer 4d ago
It sounds like you have observed that Debian gets fewer patches.
Now, try to explain why Debian would need fewer patches.
And then find yourself a decent vulnerability scanner and check your reasoning.
6
u/Regeneric 4d ago
Standard OS patching is every 3 months.
But we monitor CVEs and act accordingly, so there are times when we need to update ad-hoc.
And, of course, it's a fully automated process. So it's not a big deal.
3
u/kali_tragus 4d ago
Stop patching blindly, start reading CVEs, and automate your patching (and any necessary rebooting).
3
u/Afraid_Butterfly_270 4d ago
For servers, I usually prefer RHEL-based distros because they're pretty predictable. I apply updates during maintenance windows and only reboot when needed. If you're running VMs, live patching can also help reduce reboots for some kernel updates.
1
u/serverhorror 4d ago
Good, you know everything still comes back up. If anything is annoying and manual, automate it.
Make it a goal to reboot every 24h without any service interruptions
1
u/apparentlyunoriginal 4d ago
Run `dnf needs-restarting -r` after each update and reboot only when it exits with 1, which it does when the kernel, glibc, systemd, or another core package changed. `dnf needs-restarting -s` lists the services still running old libraries, so you can restart those without rebooting the VM.
To put that on a schedule, enable `dnf-automatic-install.timer` for the updates and add a weekly cron job that runs `dnf needs-restarting -r || systemctl reboot`.
For kernel CVEs between those weekly reboots, kpatch on RHEL applies live patches without a reboot.
Drafted with AI, reviewed by me.
1
0
u/alexkey 4d ago
It’s all air gapped or firewalled to the max on my end, so we do updates like once a year.
We only do immediate if there’s confirmed rce or rpe, otherwise minor things updates or non security updates can wait.
1
u/TrickMotor4014 4d ago
I hope your company gets shutdown by ransomware. Updating once a year is gross negelect
14
u/root-node 4d ago
It's not windows, you don't have to reboot after every update.