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
    57
    ·
    1 month ago

    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
      3
      ·
      1 month ago

      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
        5
        ·
        1 month ago

        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
    39
    ·
    1 month ago

    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
      5
      ·
      1 month ago

      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
      ·
      1 month 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.

    • JustEnoughDucks@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      I wish I could use unattended-upgrade.

      It literally restarts my server even when I disable the option, leaving it hung if the USB boot key isn’t in there.

      I had to stop using it, so now I just manually upgrade because that doesn’t auto-restart without my permission…

      • vegetaaaaaaa@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 month ago

        unattended-upgrades doesn’t do that unless you explicitly specify Unattended-Upgrade::Automatic-Reboot "true"; in the config. Check /usr/share/doc/unattended-upgrades/README.md.gz

        The main configuration file is /etc/apt/apt.conf.d/50unattended-upgrades, maybe you put your config in the wrong place?

        here is mine

  • Dran@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    1 month ago

    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.

    • cenzorrll@piefed.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 month 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.

  • Sneezycat@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    1 month ago

    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

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 month ago

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

  • Sir_Kevin@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month 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.

  • hexagonwin@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month 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.

  • deleted@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

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

  • Shimitar@downonthestreet.eu
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 month 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.

  • lambalicious@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month 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.

  • melfie@lemy.lol
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    I run Ubuntu Server 24.04 LTS with k3s. I update my container versions every few months, though not everything I’m running all at once. I update the actual system packages via apt maybe once a year and end up nuking and re-installing everything every couple years on average. I deliberately block all inbound WAN traffic in my firewall and use k8s network policies to aggressively limit egress WAN connections because I’m aware that I’m bad about keeping things up to date.

  • lemming741@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month 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.