• rtxn@lemmy.worldM
    link
    fedilink
    arrow-up
    25
    ·
    1 day ago

    yay, a utility to access the AUR, where users share build scripts instead of binaries. It’s just one step above curl | sudo sh in terms of security.

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      7
      ·
      1 day ago

      Except it automates the steps you’d have to take to inspect and edit the script, if needed. Also, PKGBUILDs are much nicer to read than just plain install scripts. And, of course, it actually builds a package, which is then installed, so it’s not only tracked but can be updated like the rest of the system.

        • Lucy :3@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          I’d say that yay encourages checking the PKGBUILD or its diff more than the average “curl xy | sudo sh” instruction, but considering most people see yay just as yet another package manager, instead of an AUR helper, that’s probably true for most people

          • rtxn@lemmy.worldM
            link
            fedilink
            arrow-up
            2
            ·
            12 hours ago

            That’s why it’s one step above. The user is given an option to read the PKGBUILD (or a diff with the cached copy if it exists), but beyond that, it’s still unverified arbitrary code from an external source (the project’s actual source, binaries, or packages from another repository). Packages in the official Arch repos are verified by the downstream packagers. For AUR packages, it’s up to the community to moderate itself, and the user to determine whether the package is trustworthy, and I’m willing to bet that not many people do it. I certainly don’t vet everything I install.

          • copygirl@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 day ago

            That’s probably the “just one step above” part. You do have the option to inspect the script you’re executing before you do so with curl | sh too, if you know what you’re doing. If you don’t, then you’d be pretty likely to just skip the prompt from yay as well. (Automatic diffs are nice tho.) Note: I use paru instead so I don’t know what yay does.

    • Flipper@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

      I don’t think the aur can switch the delivered script whether you are piping it into sh or not.