• Alex
    link
    478 months ago

    Should’ve used “||”

      • @[email protected]
        link
        fedilink
        English
        108 months ago

        doesn’t that do all of them together, possibly making you install it multiple times ?

          • @[email protected]
            link
            fedilink
            28 months ago

            Ignoring you’re right there are plenty of instances where a common name would carry over multiple install options.

            What I’d rather is to allow two parameters. The tool should be included as well as the package so ‘install apt openjdk’ or ’ install npm yarn’

            Of course the problem then becomes a lot of these install apps have their own set of parameters.

            Now I’m curious if anyone has written a universal installer.

            • @[email protected]
              link
              fedilink
              8
              edit-2
              8 months ago

              You are missing the point. The author is satirizing the fact that there are so many tools and patterns that do basically the same thing. The author doesn’t want to bother figuring out what installation method this particular tool recommends. So they have this script so that he can run geterinstalled inkscape and let the computer figure out which one works.

              If you were going to write geterinstalled pip foo you may as well just run pip install foo.

              Also note the title-text, which addresses this exact issue:

              The failures usually don’t hurt anything, and if it installs several versions, it increases the chance that one of them is right. […]

              https://xkcd.com/1654/

              • @[email protected]
                link
                fedilink
                48 months ago

                Not missing the point. I know it’s satire. As a thought experiment it got me interested though nothing more.

            • @[email protected]
              link
              fedilink
              38 months ago

              I’ve been working on one for a minute but the best solution I’ve come up with is searching every package manager when search is invoked but otherwise requiring the package manager to be declared via pkgman.package for installs/removes etc.