• Zeroc00l@sh.itjust.works
    link
    fedilink
    arrow-up
    26
    ·
    2 months ago

    Novice homelaber here, is this just a case of apt update & upgrade or is there different commands for security and kernel updates? Also what’s your preferred backup/restore software? Thanks!

    • Ghoelian@piefed.social
      link
      fedilink
      English
      arrow-up
      22
      ·
      2 months ago

      Nope it’s just apt update & upgrade. Iirc apt tells you when the kernel was updated and needs a reboot as well.

        • Ghoelian@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          Is it? Afaik that also removes incompatible packages so if you’ve installed some custom stuff that might not be the best option.

          • ryannathans@aussie.zone
            link
            fedilink
            arrow-up
            1
            ·
            2 months ago

            You should be reading the proposed changes before pushing yes. But regardless you can get stuck upgrading if you use only “upgrade” when dependences intentionally incompatibly change by package maintainers

          • JargonWagon@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 months ago

            Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this:

            # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y
            
            
            • Arthur Besse@lemmy.ml
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 months ago

              I can’t really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them.

              Eg, if you run apt --update --autoremove upgrade -y once a day you’ll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade.

              To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to… but not quite everything. 🤷

        • jcr@jlai.lu
          link
          fedilink
          Français
          arrow-up
          2
          ·
          2 months ago

          Incredible that it’s not written everywhere, I always wanted to use something like this without the " update && upgrade" which looks like is not working oftentimes

          • TerraRoot@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            2 months ago

            Is it really not written? I saw apt upgrade --update and knew the standard shortcut would be -u, but that didn’t work so I tried -U, bingo bongo off I went.

            • jcr@jlai.lu
              link
              fedilink
              Français
              arrow-up
              1
              ·
              2 months ago

              It am quite sure in the manual, but if you just look on the interwebz tutorials every command line just writes the full shebang. So you don’t look up the manual and get flabbergasted when you see this post. btw: if you are able to guess “what the standard shortcut would be”, you are a wizard Harry 🥳

    • nomad@infosec.pub
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      2 months ago

      Kernel updates are usually held back and need to be selected manually. E.g. apt-get install linux-image-amd64.

      I prefer rsync for private backups and employ bareos in my company for all servers.

    • cRazi_man@europe.pub
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 months ago

      I’m not the person you asked the question of. I’m a fellow novice homelaber.

      I use Kopia to backup my data folders and Docker container data. Works really well. The project for this weekend is to set offsite backups to be uploaded to iDrive.

      When I update I use this:

      sudo apt update && \ sudo apt upgrade -y && \ sudo apt full-upgrade -y && \ flatpak update -y 2>/dev/null; \ sudo apt autoremove -y && \ sudo apt autoclean && \ sudo journalctl --vacuum-time=7d