this post was submitted on 05 Apr 2025
492 points (95.7% liked)
linuxmemes
24355 readers
591 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
3. Post Linux-related content
sudo
in Windows.4. No recent reposts
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yay?
yay
, a utility to access the AUR, where users share build scripts instead of binaries. It's just one step abovecurl | sudo sh
in terms of security.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.
To be fair, that's why they said
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
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.
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 fromyay
as well. (Automatic diffs are nice tho.) Note: I useparu
instead so I don't know whatyay
does.I don't think the aur can switch the delivered script whether you are piping it into sh or not.