• MsFlammkuchen@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          23
          ·
          7 days ago

          && executes the second command, if the command before was successful, || executes the second command if the first one was unsuccessful and ; executes the second command regardless of success.

          • ITGuyLevi@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            6 days ago

            I may be totally confused but I’ve also always done it in that order, otherwise I feel like it would run upgrades from your cache of the apt repos (possibly hitting errors as stuff likes to change), then after it would run apt update (updating the repos).

            My thought has always been update repos, then check those repos for software upgrades. I could definitely be wrong though.

              • ITGuyLevi@programming.dev
                link
                fedilink
                arrow-up
                3
                ·
                5 days ago

                Yeah but shouldn’t the order matter? My understanding was that && just said 'after the previous command, run this… ’ so running upgrade before update would miss any changes changes to repos… From what I can tell update is required before upgrade (just like you have it), doing it in reverse missed a ton of updates for me.

                • reggu@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  5 days ago

                  If it were upgrade && update, yes that would miss the boat. --update is a baked in feature of apt upgrade, so it knows what to do ^_^

                • JackbyDev@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 days ago

                  Presumably running upgrade with the update flag is smart enough to do it in the proper order because there would be no point in doing it in the opposite order. Many other package managers just work like this out of the box. Homebrew is such an example. Running upgrade automatically does “update” first.

      • Cevilia (she/they/…)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        8
        ·
        7 days ago

        I’m absolutely serious.

        You can also add a package name to install it at the same time as doing the upgrade, though personally I prefer to do that as a separate command so I can see what dependencies are needed.

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      7 days ago

      Wait what? I have been running silver blue and vanilla fedora recently and I don’t remember this happening. I always run my update script manually every day or so though. When do you see this screen?

      • krooklochurm@lemmy.ca
        link
        fedilink
        arrow-up
        5
        ·
        7 days ago

        When it updatedssystem files it’ll do this when you shut down your computer.

        If you never shut it down it never will lol

      • minkymunkey_7_7@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        7 days ago

        It updates just like Windows automatically, in Discover. Then it asks to restart and upgrade and it’s just like Windows. I did this just today. Nice UI and UX with Fedora with Plasma.

      • greedytacothief@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        6
        ·
        7 days ago

        What? I’ve never had fedora reboot itself. Sometimes it asks if I want to install updates on reboot or shutdown. But I am always in charge of when that happens.

  • LoafedBurrito@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    6 days ago

    It’s insanity. I had to upgrade my work laptop to windows 11 this week.

    IT didn’t do their research and turns out our main software isn’t compatible with windows 11 at all. So i had to downgrade back to windows 10. When i did, photos don’t work and the microsoft store wont open.

    Windows is such a horrible system, i have no idea why they made it so poorly. I could have installed any distro of linux and had it working well in less than 20 minutes. Upgrading to windows 11 took almost 2 hours and it still didn’t work.

    Now IT has to scramble to find a solution before the 14th and we lose all security updates, which they are very concerned about. What a nightmare to be in IT.

    • WhatsHerBucket@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      6 days ago

      It’s always a nightmare being in IT lol

      Nobody ever calls to say, “Hey! Just wanted to let you know that my email is working great, keep up the good work!”

      We only hear from people when shit is broken.

      Being in a windows shop only makes it 100x more difficult and expensive.

    • Infernal_pizza@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      6
      ·
      6 days ago

      Install Windows - does updates as part of the installation process. Get to desktop and check for updates - more updates to install. Reboot and check for updates again - yet more updates.

    • groet@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      6 days ago

      No it will update and once that is done it will shut down. But the update includes a restart so it will restart and then require you to type your password so it can finish the update, after which it will shut down.

  • ohshit604@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    38
    arrow-down
    1
    ·
    edit-2
    7 days ago

    Be me -

    Gets the Ok from IT to switch to a Linux Distro for my work desktop.

    Gets the Ok from my direct manager.

    Gets the Ok from our contracts manager who used to be in my direct managers position before.

    Direct manager reaches out to lead developer, who happens to be a windows fanboy, for the web app we use to ensure “compatibility”, gets told to be careful of what I do and our cybersecurity insurance won’t cover it.

    Be me, looking around at all the minuscule pieces of hardware connected to the internet likely running some form of Linux or Unix.

    • ByteOnBikes@discuss.online
      link
      fedilink
      arrow-up
      44
      arrow-down
      1
      ·
      7 days ago

      It’s a fucking web app. Make sure it works for a browser. You suck as a web developer if your shit web app needs to work on a specific OS.

      And those are fighting words because I build web apps.

      • Technus@lemmy.zip
        link
        fedilink
        arrow-up
        12
        ·
        7 days ago

        I’ve started noticing websites just to refuse to work on Linux:

        • Xfinity
        • Microsoft
        • United Airlines
        • American Airlines

        It’s not like some weird script error either. It’s straight up a 403 Forbidden on certain routes. Works perfectly fine if I switch to my Windows laptop. It’s like it took one look at my user agent string and decided I was a bot.

        • ChunkMcHorkle@lemmy.world
          link
          fedilink
          English
          arrow-up
          10
          ·
          7 days ago

          Not saying you’re wrong, but if you’re running a VPN it could be that as well. More and more sites are demanding CAPTCHA tests and verification holds or just returning 403 for VPN access no matter what OS you are running.

      • ohshit604@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        7 days ago

        Man they get really up in your business if you aren’t using Chrome and their dinky extension, that I swear he pulled from someone’s GitHub and rebranded as his own, which all it does is open file links in the file browser.

        I made a point by switching my user agent on Zen Browser to report as Chrome, Ubuntu haven’t heard a peep about it yet.


        Side note at one point in time the clock-in we use, which is also a web app, had its admin/manager panel exposed to everyone in the company, I reported it and all I got was a thanks.

    • Wilmo Bones@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 days ago

      Gnome Software does this with offline upgrades. It’s optional. Doing sudo dnf upgrade is the same as sudo apt update && upgrade. No reboot. Obviously you should reboot for kernels and certain hooks but otherwise yeah. You can disable gnome software automatic downloads etc

        • Arthur Besse@lemmy.ml
          link
          fedilink
          English
          arrow-up
          11
          arrow-down
          1
          ·
          edit-2
          7 days ago

          sudo apt --update --autoremove upgrade -y

          note

          this doesn’t actually do the same thing as the previous comment running autoremove afterwards does; the former will remove things which were rendered removable by the upgrade while the latter will only remove things which were already autoremovable prior the upgrade.

  • gari_9812@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    7 days ago

    Nothing like the joy of my system upgrading without a hassle… just need to press the up arrow key until I find the command… I’ll get there eventually

    • Bappity@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      7 days ago

      I did this until my coworker got annoyed enough that they told me to start using history | grep lmaoo

      • felbane@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        7 days ago

        Or ctrl+r and start typing what you’re searching for, and repeat ctrl+r to find the next newest match.

        For example, [C-r] ssh [C-r] [C-r] will auto fill the 3rd most recent ssh command you’ve run. Try it, your life will be filled with rainbows and unicorns.

      • NeatNit@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        7 days ago

        There are even better ways built into the shell, but I can never remember any of them. I also never thought of history|grep, I think I might actually remember that one. Thanks!

    • BlueKey@fedia.io
      link
      fedilink
      arrow-up
      2
      ·
      6 days ago

      fish shell and you can type the first chars of the command and it will show an autocompleate.

    • JojoWakaki@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      5 days ago

      “I use arch … btw”, also btw

      For APT enjoyers, alias yay="sudo apt update && sudo apt upgrade"

      Also, alias nay="yay -Rns"

      Or yeet if you prefer, for the yay/nay or yay/yeet pair.