• linuxisfun@lemmy.world
    link
    fedilink
    English
    arrow-up
    194
    arrow-down
    1
    ·
    1 year ago

    No need to open a web browser to install another one on Windows 10 and 11.

    All one has to do is open a terminal, type winget install Mozilla.Firefox and hit Enter. ;)

    Pro tip: To update all software on a Windows computer you can type winget upgrade --all and hit Enter (especially useful for computers from family or friends with LibreOffice or Java versions from the stone age …).

    • fatalError@kbin.social
      link
      fedilink
      arrow-up
      51
      ·
      1 year ago

      wow, for a seconds I thought you were mocking windows for not having some central software repo like linux uses apt-get, but it actually works o.O
      TIL winget is a thing.

      • linuxisfun@lemmy.world
        link
        fedilink
        English
        arrow-up
        33
        ·
        1 year ago

        Haha, glad to hear that you discovered winget through my post!

        It was, in my opinion, long overdue for Microsoft to introduce a package manager for Windows, but now that it is there, you can actually use it for all kinds of useful stuff. E. g. I would, if I was using Windows, create a PowerShell script to install my software all at once for whenever I reinstall my computer. This makes reinstalling a lot faster and I have documentation about the programs I had installed before. ;)

        • brsrklf@compuverse.uk
          link
          fedilink
          English
          arrow-up
          9
          ·
          1 year ago

          Count me in the people who had no idea windows had a command line package manager-style tool.

          Does it look for its stuff in the windows store?

          • linuxisfun@lemmy.world
            link
            fedilink
            English
            arrow-up
            12
            ·
            1 year ago

            Winget is able to install applications from multiple sources, including the Microsoft Store. You can see a list of all configured sources by executing winget source list. For regular applications a community repository is preconfigured.

            If you would execute my example command, Firefox would get installed from the community repository. You should be able to use the following command to install the Microsoft Store version of Firefox: winget install 9NZVDKPMR9RD

            9NZVDKPMR9RD is the package id of the Microsoft Store version of Firefox. You can either get it by executing winget search firefox or you can get it from the URL of the Microsoft Store entry.

            • brsrklf@compuverse.uk
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 year ago

              I didn’t expect there to be an officially supported community repository too. Interesting.

        • panCat@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          I think they are still updating their repo, i remember adding few basic repos to them !

    • izzent@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      ·
      1 year ago

      Upgrade all, wow. I knew about Winget install, but this is so good!! Thanks for the advice 😁

    • StrawberryPigtails@lemmy.astaluk.icu
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      I’ll be damned… Did not know that existed. I’ve never used the Windows store and it still found updates for most of what I have installed.

      Thanks!

    • ramjambamalam@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      I’ve been using chocolatey for years but TIL about winget. Cheers!

      I’ll probably continue using chocolatey due to supporting more packages, but good to know there’s a built-in package manager in Windows now.

    • Tippon@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      This is why I’ll never use Windows, it’s just too complicated for the average person. Imagine having to enter commands into the command line just to upgrade your computer, that’s way beyond most people.

      I’d rather just stick with Mint with its GUI and automatic updates 😉

    • ebits21@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Love it for libreoffice since getting auto update will likely take a decade.

      Use it to upgrade work computers without me sitting there are watching.