Lemmy.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Cwilliams@beehaw.org to Linux@lemmy.ml ·
edit-2
2 years ago

Anyone have a better solution? :P

beehaw.org

message-square
61
link
fedilink
326

Anyone have a better solution? :P

beehaw.org

Cwilliams@beehaw.org to Linux@lemmy.ml ·
edit-2
2 years ago
message-square
61
link
fedilink
alert-triangle
You must log in or register to comment.
  • yum13241@lemm.ee
    link
    fedilink
    arrow-up
    88
    arrow-down
    1
    ·
    2 years ago

    WHERE IS PACMAN, our HOLY SAVIOR?

    Jokes aside, paru.

    • GigglyBobble@kbin.social
      link
      fedilink
      arrow-up
      33
      arrow-down
      2
      ·
      2 years ago

      Why are there so many paru fans? Last release is a year old, constantly out of date in AUR and failing builds in Github don’t scream code quality. I prefer yay.

      • PizzaDeposit@lemm.ee
        link
        fedilink
        arrow-up
        22
        ·
        2 years ago

        Because it’s written in rust ofcourse.

      • 30p87@feddit.de
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        It also sounds much happier, yay!

        • FUsername@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Kid you not, that was my first reason to adopt it (next to having a short name).

      • yum13241@lemm.ee
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        Because paru has a working sudoloop and config, unlike yay.

        • Aatube@kbin.social
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Could you elaborate?

          • yum13241@lemm.ee
            link
            fedilink
            arrow-up
            6
            ·
            edit-2
            2 years ago

            yay sometimes asks for sudo even when sudoloop is on, and paru’s config is in an easy to find location.

            Oh, and you can change the program paru uses for root access.

      • Cwilliams@beehaw.orgOP
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        I honestly go back and forth. Depends on which one I decide to try next time I reinstall. I actually used aura for a while, but switched back to yay for the --sudo flag. (I use opendoas)

  • noodle (he/him)@lemm.ee
    link
    fedilink
    arrow-up
    47
    arrow-down
    1
    ·
    2 years ago

    topgrade? https://github.com/topgrade-rs/topgrade

    • Cwilliams@beehaw.orgOP
      link
      fedilink
      arrow-up
      27
      ·
      2 years ago

      Kinda meant it as a joke, but that’s actually super cool

      • TrustingZebra@lemmy.one
        link
        fedilink
        arrow-up
        8
        ·
        2 years ago

        It’s a great tool but note that by default it upgrades EVERYTHING, up to and including production cloud environments if you are connected to any.

  • Alex@feddit.ro
    link
    fedilink
    arrow-up
    46
    arrow-down
    1
    ·
    2 years ago

    Should’ve used “||”

    • kevincox@lemmy.ml
      link
      fedilink
      arrow-up
      18
      arrow-down
      2
      ·
      2 years ago

      That would be slower. This tries all of the tools in parallel.

      • 20gramsWrench@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        11
        arrow-down
        1
        ·
        2 years ago

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

        • kevincox@lemmy.ml
          link
          fedilink
          arrow-up
          32
          arrow-down
          3
          ·
          2 years ago

          The idea is that only one will succeed. Look, it is a comic not a production-ready solution.

          • ThatHermanoGuy@midwest.social
            link
            fedilink
            arrow-up
            11
            ·
            2 years ago

            Don’t care, ship it now!

          • whoisearth
            link
            fedilink
            arrow-up
            2
            ·
            2 years 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.

            • kevincox@lemmy.ml
              link
              fedilink
              arrow-up
              9
              arrow-down
              1
              ·
              edit-2
              2 years 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/

              • whoisearth
                link
                fedilink
                arrow-up
                4
                ·
                2 years ago

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

            • zwekihoyy@lemmy.ml
              link
              fedilink
              arrow-up
              3
              ·
              2 years 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.

  • Alex@feddit.ro
    link
    fedilink
    arrow-up
    42
    ·
    2 years ago

    Nix entered the chat

  • taanegl@beehaw.org
    link
    fedilink
    arrow-up
    39
    arrow-down
    7
    ·
    2 years ago

    Microsoft: “winget!”

    Nobody asked you, Microsoft. Go back to making compact nuclear reactors, because honestly that’s based AF.

    • schnurrito@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      wasn’t a thing yet when the comic was made; technology advances so quickly…

      • taanegl@beehaw.org
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        2 years ago

        Yeah, but it’s also a Windows exclusive - so it’s just usable on the Windows platform, but it’s a package managed for windows! winget install gimp.GIMP installs gimp, no browser necessary =)

        Check the link though. Microsoft might pull a sneaky in the future. “All Winget packages will be bundled with telemetry for security” or something like that.

    • TimeSquirrel@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      deleted by creator

  • Engywook@lemm.ee
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    2 years ago

    Where pacman?

    • The Doctor@beehaw.org
      link
      fedilink
      English
      arrow-up
      15
      ·
      2 years ago

      sudo pacman -Sy $1

      There you go.

      • Dandroid@dandroid.app
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        It doesn’t even run detached. Literally unrunnable.

      • Engywook@lemm.ee
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        2 years ago

        Thanks.

    • soulfirethewolf@lemdro.id
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      Here he comes

      • PipedLinkBot@feddit.rocksB
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Here is an alternative Piped link(s):

        Here he comes

        Piped is a privacy-respecting open-source alternative frontend to YouTube.

        I’m open-source; check me out at GitHub.

  • Hamartiogonic@sopuli.xyz
    link
    fedilink
    arrow-up
    27
    ·
    2 years ago

    “The script accepts the name of a program or package as an argument when you run it. This value is then referenced as “$1” (argument number 1). Everywhere the script says “$1”, it substitutes in the name of the package you gave it. The end result is the name being tried against a large number of software repositories and package managers, and hopefully, at least one of them will be appropriate and the program will be successfully installed.”

    Source: explain XKCD

    • Cwilliams@beehaw.orgOP
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Yep, thanks!

    • The Ramen Dutchman@ttrpg.network
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      I don’t think they asked for an explanation, but thanks anyways!

      ExplainXKCD’s a great site, more XKCD readers should know about it!

      • Hamartiogonic@sopuli.xyz
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        Nobody asked, but I needed it. Thought that perhaps I’m not alone, so now that I have the answer, might as well share it here.

        • The Ramen Dutchman@ttrpg.network
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          2 years ago

          That sonds like a good thought process, I’ll try it too

  • mogoh@lemmy.ml
    link
    fedilink
    arrow-up
    22
    arrow-down
    2
    ·
    edit-2
    2 years ago
    flatpak install "$1"
    snap install "$1"
    appimage-cli-tool install "$1"
    
    • Norgur@discuss.tchncs.de
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      2 years ago

      cd “$1” && docker-compose up -d

    • passepartout@feddit.de
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 years ago

      flatpak good snap bad, amirite?

  • Illecors@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    2 years ago

    Where’s sudo emerge -avq $1?? How dare you omit it?! Blasphemy!

  • dudinax@programming.dev
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    2 years ago

    You’re gonna need a -y on apt-get

  • pbsds@lemmy.ml
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    2 years ago

    The final fallback should be robodialing some tech support service and provide TeamViewer credentials

  • Joe Bidet@lemmy.ml
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    wait… no alpine apk?! :)

  • Mara@pawb.social
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    Nix!

  • subcytoplasm@l.tta.wtfB
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    2 years ago

    nix-shell -p "$1"

  • 18107@aussie.zone
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    https://www.explainxkcd.com/wiki/index.php/1654:_Universal_Install_Script

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 402 users / day
  • 1.86K users / week
  • 7.48K users / month
  • 16.8K users / 6 months
  • 1.04K local subscribers
  • 54.3K subscribers
  • 9.42K Posts
  • 210K Comments
  • Modlog
  • mods:
  • nooter692@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • UI: 0.19.11
  • BE: 0.19.11-n.1
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org