Or asked the other way around: How long do you keep your servers running without installing any software updates?

update means something like

sudo dnf update

or something ....

apt-get upgrade
apt-get update

top 50 comments

sorted by: hot top controversial new old
[–] 57 points 9 months ago (1 child)

Those apt commands are in a less-good order. It's usually better to update apt, then upgrade the system.

I upgrade as soon as reasonably possible after the notification appears, if the system isn't on auto-upgrade.

  • source
  • hideshow 2 child comments
  • [–] 40 points 9 months ago (6 children)

    Every night at ~ 12-1am

    unattended updates / transactional-update are awesome.

    Stuff has been running for years, and it's still up to date.

  • source
  • hideshow 9 child comments
  • [–] 2 points 9 months ago

    Once per week for me. Works really great on openSUSE MicroOS. Had to roll back maybe a couple of times the last few years.

    That said, I run basically everything in containers so the OS installed things are lean.

  • source
  • parent
  • load more comments (3 replies)
    [–] 23 points 9 months ago (1 child)

    Unattended-upgrade does security-only patching once every 4 hours (in rough sync with my local mirror)

    Full upgrades are done weekly, accompanied by a reboot

    I find that the split between security patching and feature/bug patching maintains a healthy balance knowing when something is likely to break but never being behind on the latest cve.

  • source
  • hideshow 2 child comments
  • [–] 3 points 9 months ago

    For me, unattended-upgrade does it's thing. Updating other packages happens whenever I think about it. Very few things are not containerized and there's very little added beyond the base Debian install, so when I do update its maybe a dozen packages.

    I would previously reboot during thunderstorms if we lost power, but now that I've got a UPS I probably ought to come up with a different plan.

  • source
  • parent
  • [–] 17 points 9 months ago* (3 children)

    Well, one of the reasons I'm using debian on my server is so I can kinda forget about it...

    I'll update maybe once a month, or every couple months. I don't always restart though, so my kernel is probably a bit behind :'D

  • source
  • hideshow 6 child comments
  • [–] [S] 4 points 9 months ago*

    lol. Same issue for me. I run it for months, and surprisingly (for me) nothing breaks at all.

    But fucking ssh shows warnings regarding some "post quantum crypto" stuff; recommending software update, that was not there before lol.

  • source
  • parent
  • [–] 13 points 9 months ago (1 child)

    When I remember. About once a month.

  • source
  • hideshow 2 child comments
  • [–] 11 points 9 months ago

    Whenever I ssh into it.

  • source
  • [–] 8 points 9 months ago

    Once a week. I have a bash script that does an apt update upgrade and pulls new docker images.

  • source
  • [–] 6 points 9 months ago

    Monthly unless I learn about a vulnerability that would require it sooner.

  • source
  • [–] 5 points 9 months ago

    On Windows, almost never since it was a disruptive shitshow. Now that I've got everything running Linux it's weekly. Often sooner if I happen to be remoting in and manually update.

  • source
  • [–] 5 points 9 months ago

    maybe like once in 3 months. i usually update when i need to setup something new on the server that needs to install new packages.

  • source
  • [–] 4 points 9 months ago

    Weekly. Cronjob.

  • source
  • [–] 4 points 9 months ago

    I do it every 3 to 5 days. I usually do it when I have time to fix things if it goes south.

  • source
  • [–] 4 points 9 months ago

    Only mostly when I want to. Which tends to be on Mondays and Saturdays.

    I'm running Sid on servers, so automatic updates are actually a risk. Used to be Debian Stable, but maaan the docker and podman improvements.... make me drool.

  • source
  • [–] 3 points 9 months ago*

    Gentooer here. Emerge sync &; world daily at night.

    Weekly a manual check for stuff that doesn't autoupdate for reasons.

    Monthly / biweekly podman compose pull for containers. Manual, because i don't trust that kind of autoupdate.

    Edit: opnSense updates are manual only when I remember because if it breaks, I must be at home to fix it or i lose remote access and that's bad.

  • source
  • [–] 3 points 9 months ago*

    Automatic daily updates for system packages. Automatic daily container updates with watchtower. I normally have things pinned to a reasonable major or minor release, so I do manual upgrades for new OS release branches and usually pin to a major version for Docker containers but depends on the container.

  • source
  • [–] 3 points 9 months ago (4 children)

    @PlanterTree Systems facing public internet, security updates are applied daily automatically.

  • source
  • hideshow 5 child comments
  • load more comments (3 replies)
    [+] 3 points 9 months ago* (last edited 4 months ago)
    [–] 3 points 9 months ago

    Probably every 2 months. When I have a day off work with nothing to do. I have a few VMs that are more fragile than I want to admit and if something breaks I want to have time to tinker instead of just restoring a backup.

  • source
  • [–] 3 points 9 months ago (2 children)

    On Alpine Linux I update my two Pi servers at 2 in the morning daily. It's simpler compared to Debian which needs unattended-updates. Just add apk update && apk upgrade to a cron job and you're good to go.

    I only have three docker services which is simple enough to update manually.

    I like to keep things as simple as possible for my already chaotic brain.

  • source
  • hideshow 4 child comments
  • [–] 4 points 9 months ago (1 child)

    Be careful with unattended upgrades, even on alpine. A recent breaking change in python3 broke my alpine 23 ansible instance. Thankfully I have backups, but if you're going to automate the upgrade, you should automate tests as well.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 9 months ago

    My web facing server has just enough packages installed to (kinda securely) host a Caddy and Kiwix docker container to work with my domain name and make a comfortable work environment through SSH. My Pi for my HomeAssistant docker container has less because it's locked down to just my local network.

    I also wrote my own install scripts so reinstalling everything and getting it back to a running state would take about 15 minutes for each device.

    And I also wrote my own backup/restore scripts that evolved over 3/4 of a year. I use them often so I have confidence in those scripts.

    I personally don't really care too much. I have multiple ways of dealing with issues for something that's a hobby to me. Which is why I stick to simplicity.

    I'm sure this is a thing for people to worry about when dealing with more complex setups. I just wanna vibe out in my tiny corner of the internet.

  • source
  • parent
  • [–] 3 points 9 months ago (1 child)

    Every day or at least once a week. Should automate it.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)

    I SSH in and run an update manually, once a week.

    I'm not knowledgable and comfortable enough to let updates happen automatically and feel like I could trust it to keep running. Not yet, anyway.

    Edit: But at some point I might do what another commenter said and make sure security updates run automatically and check other updates weekly.

  • source
  • [–] 3 points 9 months ago

    Using nix :P

    I update the flake every now and then via nix flake updated and then do a rebuild

  • source
  • [–] 2 points 9 months ago

    Automatic upgrades handle the security patches. Everything else maybe once a month. My big services like Nextcloud auto update as well.

  • source
  • [–] 2 points 9 months ago

    On my ubuntu I use unattended updates but that doesn't work reliably. I have to update it manually most of the time. Once every other month.

    On my fedora server it auto updates every day at 4 reliably.

    The next server is going to be atomic such that the server restart is even shorter (not that I would care about it at 4).

  • source
  • [–] 2 points 9 months ago

    All services are dockerized, updated nightly.

    Server OS runs a kernel-patch service for real time exploit patching.

    All other updates as soon as they appear.

    Yeah, sometimes I'll need to go in a repair - but that's way better than having to clean up after having been exploited due to not keeping up on security patches.

  • source
  • [–] 2 points 9 months ago

    Daily on my Gentoo server, through a Cronjob every morning. It's a custom script though, so there's more than just doing an emerge update. It'll send me ntfy notifications for the update results, if there are new news items, and if there are any time config merge updates to make. A few other things as well but that's the main stuff.

    Other servers, typically weekly or only manually when I ssh into them (for the ones I don't really feel the need to update frequently).

  • source
  • [–] 2 points 9 months ago*

    If I have something serious, I will set up automatic upgrades. If short downtimes are ok, also with automatic reboots when the kernel updates, but if they are not, with notifications that I should go reboot them.

    If it's not anything serious, whenever I remember to.

  • source
  • [–] 2 points 9 months ago

    Almost everything I have runs Debian or NixOS, so…….. once a month? Except for VMs I’m playing around with, which usually get updated every time I log into them, or instal stuff.

  • source
  • [–] 2 points 9 months ago*

    everyday to once a month, depending how often I use the server

    IME usually waiting longer to apply larger updates causes more issues than smaller and more frequent ones

  • source
  • [–] 2 points 9 months ago

    Every couple of days. I don't auto-update, but I've streamlined the process to the point that I can just open a single web page and see the number of pending updates for every system on my network, docker containers included, each one with a button. Clicking the button applies the update and reboots if necessary. So it takes about 15 seconds of effort to update everything, which is why I don't mind doing it so often.

  • source
  • [–] 2 points 9 months ago

    podman quadlets with auto updates running on opensuse microos

    im not yet self hosting a ton of services tho

  • source
  • [–] 2 points 9 months ago (2 children)

    When something doesn't work. I.e. when an app update causes incompatibility with a service. I think I have one server that's a few years without an update (distro version may actually be EOL for all I know).

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    load more comments
    view more: next ›