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
  • mjr@infosec.pub
    link
    fedilink
    English
    arrow-up
    31
    ·
    7 个月前

    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.

    • njordomir@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 个月前

      I do sudo apt update && sudo apt upgrade

      Is there any reason to not combine the commands since the output always prompts prior to changes anyway?

      • cyberwolfie@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        7 个月前

        I think their point was to make sure they are done in order, i.e. update before upgrade, not the other way around as in OPs example.

  • dust_accelerator@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    7 个月前

    Every night at ~ 12-1am

    unattended updates / transactional-update are awesome.

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

    • DasFaultier@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      7 个月前

      This is the way! At least install security upgrades nightly using unattended-upgrades and reboot from time to time to get the latest Kernel version.

    • gopher@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 个月前

      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.

  • Dran@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    7 个月前

    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.

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 个月前

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

    • PlanterTree@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 个月前

      Should; Could; How high of a priority is this update automation for you? This is also how I run my server. Configuration possibilities are infinite.

  • Sir_Kevin@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 个月前

    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.

  • suicidaleggroll@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 个月前

    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.

  • confusedpuppy@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 个月前

    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.

    • non_burglar@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 个月前

      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.

      • confusedpuppy@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 个月前

        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.

  • deleted@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 个月前

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

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 个月前

    All systems, daily via a single ansible script. That’s apt update, upgrade and reboot if needed (some systems set to only reboot with a separate script so I can handle them separately).

    Rarely have any sort of problems.

  • jbk@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 个月前

    podman quadlets with auto updates running on opensuse microos

    im not yet self hosting a ton of services tho

  • Mikelius@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 个月前

    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).