But yay is really great! Gives you all information and things to do, but with minimal amounts of prompts for it. Full system upgrades with full control, but minimal interaction.
I also use trizen. I always liked pacaur, but that is no longer being developed, so trizen was a solid replacement. It's fast, feature-full, and pretty (ooh, colors!)
Be sure to change the default build dir from /tmp to something sane. It's very easy to run out of disk space (aka ram) when building larger packages on tmpfs.
I second pikaur, I tried Trizen with its bucketload of deps, liked it at first but the endless questions like:
"do you want to retry y/n?"
and
"do you want to exit now y/n?"
switched me to pikaur.
god I miss pacaur
I'm in same boat. Trizen is just so damn annoying, I can't believe it's getting recommended the most.
I'm updating and trying out pikaur every so often and I like using it, but it's just not stable enough yet to be a drop-in replacement for pacaur. Hopefully in a month or two it'll be fully ready.
Ah hell I hated those messages. I still use Trizen, but only because I found the --noconfirm flag before I switched to something else.
Now I gave a specialized user root exec privileges for pacman and trizen and I su to update my system with trizen -Syu --noconfirm --ignore=(...). It's amazing, I don't have to babysit my computer while it compiles heavy projects from git source! I can get a coffee and not worry that a confirmation will time out and discard all the work; a revolutionary concept!! --noconfirm should really be default behaviour.
It's a Python3 helper, which is way more than "hardly any" dependencies. Perl and bash are installed on any Arch system, and the "bucketload" of deps is a few complementary perl packages with size of a few kilobytes.
I keep seeing this clean chroot stuff in instructions. Can you explain what goes on here? I only use chroot when I messed something up bigtime and need to browse my partition.
Chrooting creates a chroot jail which essentially acts a very basic and dumbed down VM. When building AUR packages in a chroot, aurutils creates essentially a very basic Arch install in a jail, then uses that chroot jail to create the package.
The main benefit of this is that you don't have to muddy up your main installation with build/make dependencies. The build deps are installed in the chroot jail, then the chroot is erased when aurutils is done.
I still use pacaur for one-offs, but I started hosting a custom repo for aurutils off my home server, sshing in to do rebuilds and such.
Then I found a cool new project, aurto, which automates aurutils builds on a timer (and correctly handles packages whose pkgvers change via a function). It's not perfect and its own PKGBUILD isn't too good IMO, but it's working pretty well. Somewhat happy I found it before I had time to write my own (though we'll see).
Why not just make a systemd timer to run aurbuild if you want to do it unattended? Sounds like overkill to use a package for something so straightforward. Although I do question the reasoning behind this. If you wouldn't build official repo packages unattended, why would you do it with AUR packages? Unless you would build official packages unattended, in which case I wonder why you worry about a clean build environment in the first place; I'd suspect you'd have other issues.
Mods, can we please immediately close these idiotic threads as they come up every other day. Because why pin something that's widely available in the wiki...
Good point, and you are correct, of course. In practice, I git pull without much delay after an update is pushed, so there's (likely) no difference, but your method is definitely more foolproof and more correct.
Edit: Actually, there very well could be differences, if upstream committed several changes back-to-back-to-back-to-... and then pushed them all at once. I would only see the diff for the very last commit. OK, I will switch to your suggested method. Thanks!
This question is asked every week and I don't know why it is upvoted. A simple google search provides numerous threads that discuss the exact same question.
Nonetheless, I vote for yay.
Use minimal aur packages. I use this small script for aur updates. Use pamac-aur for search and install.
check_aur(){
local pkg
local return_status
for pkg in $(pacman -Qqm)
do
printf "\n${LGREEN}Checking Updates for $pkg${RESET}\n"
cower -vdfu -t ~/Downloads $pkg
return_status=$?
if [ $return_status -eq 0 ]
then
printf "Installing Update for $pkg ...\n"
cd ~/Downloads/$pkg
makepkg -si
wait
else
printf "No updates found for $pkg\n"
fi
cd ~/Downloads
if [ -d $pkg ]
then
rm -rf $pkg
fi
printf "Finished $pkg\n\n"
done
}
I use pacaur, AFAIK, yaourt is actually quite dangerous as it does a source of the package file after it pulls it down, executing any potentially malicious commands inside.
Edit: just read pacaur is no longer maintained, if this is accurate I should move away from that.
There's plenty of reasons to not use pacaur (like its obnoxious behavior on .SRCINFO "mismatches") but some knee-jerk response because the maintainer abandoned it has no point.
I especially like the comments "pacaur is unmaintained so I switched to yaourt" when yaourt has essentially been unmaintained for years.
Yaourt is fine. There were security issues in the past, but they've been resolved. So long as you're reviewing the PKGBUILD before building it (which is the behavior Yaourt defaults to) you'll be fine.
Not OP but yaourt asks for a ton of confirmations and it often sprinkles them throughout the whole install/upgrade process so I have to babysit the whole thing. Pacaur (for example) asks for confirmations at the beginning of an upgrade and then I can walk away.
Edit: just installed trizen with both as a test. Pacaur prompted me twice, both before building anything at all. Yaourt prompted me 4 or 5 times (depending how you count) and these prompts were over a longer time span.
I should use something else given yaourt is unmaintained and insecure, but I haven't found a helper that perfectly replaces all the functionality I use - git cache, built packages in their own dir I can host, the pkgbuild edit prompt, searches that include repos and AUR, and something akin to yaourt -Syua --devel --noconfirm that updates everything at once without hassle.
All the AUR helpers I've (casually) tried out were missing at least one of those.
Can’t say enough good things about trizen. Thought it was going to be one of those bandwagon things, but no it’s as reliable and simple as anything for packaging from the AUR.
123 comments
Yay is great! A lot like yaourt!
AFAIK it's leaned on
pacaurBut
yayis really great! Gives you all information and things to do, but with minimal amounts of prompts for it. Full system upgrades with full control, but minimal interaction.pacauris written in bash. Pretty sureyayis written in go.Coming from pacaur, yay is absurdly fast. I was impressed when I changed.
trizen is what I use :)
Thanks. I’ll give that a try.
I also use trizen. I always liked pacaur, but that is no longer being developed, so trizen was a solid replacement. It's fast, feature-full, and pretty (ooh, colors!)
Be sure to change the default build dir from /tmp to something sane. It's very easy to run out of disk space (aka ram) when building larger packages on tmpfs.
Ditto. It's been great since switching from
pacaurhttps://wiki.archlinux.org/index.php/AUR_helpers#Active
aurman. Top of the board ;)
Agreed
this
pikaur, if you want fewer* dependencies.
I second pikaur, I tried Trizen with its bucketload of deps, liked it at first but the endless questions like: "do you want to retry y/n?" and "do you want to exit now y/n?" switched me to pikaur. god I miss pacaur
I'm in same boat. Trizen is just so damn annoying, I can't believe it's getting recommended the most.
I'm updating and trying out pikaur every so often and I like using it, but it's just not stable enough yet to be a drop-in replacement for pacaur. Hopefully in a month or two it'll be fully ready.
I'm still using pacaur :(
Have I missed something?
Ah hell I hated those messages. I still use Trizen, but only because I found the --noconfirm flag before I switched to something else.
Now I gave a specialized user root exec privileges for pacman and trizen and I su to update my system with
trizen -Syu --noconfirm --ignore=(...). It's amazing, I don't have to babysit my computer while it compiles heavy projects from git source! I can get a coffee and not worry that a confirmation will time out and discard all the work; a revolutionary concept!! --noconfirm should really be default behaviour.Is pikaur the one that was posted to this sub recently? The one that hardly has any dependencies and keeps it simple?
Yay is very good and has no dependencies (except for the Go compiler, but you can use the
yay-binpackage if you don't want the compiler).It's a Python3 helper, which is way more than "hardly any" dependencies. Perl and bash are installed on any Arch system, and the "bucketload" of deps is a few complementary perl packages with size of a few kilobytes.
Check it out, git, sudo, and python! You mostly have them /: https://aur.archlinux.org/packages/pikaur/
Fewer*
Better than yay?
I can't say it's better or not. But yay depends on go, which is something I don't need compared to pikaur and Python.
aurutils. Build in a clean chroot. Nuff said.
I keep seeing this clean chroot stuff in instructions. Can you explain what goes on here? I only use chroot when I messed something up bigtime and need to browse my partition.
Chrooting creates a chroot jail which essentially acts a very basic and dumbed down VM. When building AUR packages in a chroot, aurutils creates essentially a very basic Arch install in a jail, then uses that chroot jail to create the package.
The main benefit of this is that you don't have to muddy up your main installation with build/make dependencies. The build deps are installed in the chroot jail, then the chroot is erased when aurutils is done.
I still use pacaur for one-offs, but I started hosting a custom repo for aurutils off my home server, sshing in to do rebuilds and such.
Then I found a cool new project, aurto, which automates aurutils builds on a timer (and correctly handles packages whose pkgvers change via a function). It's not perfect and its own PKGBUILD isn't too good IMO, but it's working pretty well. Somewhat happy I found it before I had time to write my own (though we'll see).
Why not just make a systemd timer to run aurbuild if you want to do it unattended? Sounds like overkill to use a package for something so straightforward. Although I do question the reasoning behind this. If you wouldn't build official repo packages unattended, why would you do it with AUR packages? Unless you would build official packages unattended, in which case I wonder why you worry about a clean build environment in the first place; I'd suspect you'd have other issues.
Mods, can we please pin as this question comes up every other day?
Mods, can we please immediately close these idiotic threads as they come up every other day. Because why pin something that's widely available in the wiki...
Someone suggested auto-moderation bot to catch these and just refer to the wiki. I simply haven't had time to look into it.
I use yay
I only have
foreign packages, which don't involve any complex dependencies or very frequent updates, so I just do
to install,
to check for updates with auracle, and
to fetch, verify, merge, and install the changes.
Edit: Change
to
following /u/z3ntu's suggestion.
You should replace your git pull -> git diff HEAD~1 workflow with
That way you not only get the diff from the last commit but all since you last updated.
Good point, and you are correct, of course. In practice, I
git pullwithout much delay after an update is pushed, so there's (likely) no difference, but your method is definitely more foolproof and more correct.Edit: Actually, there very well could be differences, if upstream committed several changes back-to-back-to-back-to-... and then pushed them all at once. I would only see the diff for the very last commit. OK, I will switch to your suggested method. Thanks!
This question is asked every week and I don't know why it is upvoted. A simple google search provides numerous threads that discuss the exact same question. Nonetheless, I vote for
yay./u/Foxboron should rename this channel to
/r/imfourteenandyaourtisbadI’m out of the loop. What’s the matter with yaourt?
It had security issues in the past, but I believe they're fixed now.
Nope.
Nothing.
Knowing your reasons to want a change would help with answering that. I prefer yaourt personally.
Something something not secure, something build before seeing...
The security concerns are no longer an issue from my knowledge
YaY FTW. From all the aur helpers I've tried, YaY is the most polished one.
First time I saw it written like that. Maybe I should rename my project to AuRuTiLs for maximum edge.
I like the simplicity of cower.
Use minimal aur packages. I use this small script for aur updates. Use pamac-aur for search and install.
Use aurman, it has the least weird dependenies, unless you actually want to install Go...
Use the
yay-binpackage if you don't want to.I use pacaur, AFAIK, yaourt is actually quite dangerous as it does a source of the package file after it pulls it down, executing any potentially malicious commands inside.
Edit: just read pacaur is no longer maintained, if this is accurate I should move away from that.
There's plenty of reasons to not use pacaur (like its obnoxious behavior on .SRCINFO "mismatches") but some knee-jerk response because the maintainer abandoned it has no point.
I especially like the comments "pacaur is unmaintained so I switched to yaourt" when yaourt has essentially been unmaintained for years.
makepkg -si
I’m new to arch. I’m a long time Debian user.
I keep coming across information that makes yaourt sound like a poor option and that there are much better ones available.
I’ve been using yaourt without any issues so far but I want to pick the right tool to stick with going forward.
Yaourt is fine. There were security issues in the past, but they've been resolved. So long as you're reviewing the PKGBUILD before building it (which is the behavior Yaourt defaults to) you'll be fine.
No, they're not. Why not invest the effort you put into spreading obvious lies to fixing that horrendous software?
Why do you not like yaourt?
Not OP but yaourt asks for a ton of confirmations and it often sprinkles them throughout the whole install/upgrade process so I have to babysit the whole thing. Pacaur (for example) asks for confirmations at the beginning of an upgrade and then I can walk away.
Edit: just installed trizen with both as a test. Pacaur prompted me twice, both before building anything at all. Yaourt prompted me 4 or 5 times (depending how you count) and these prompts were over a longer time span.
there's always --noconfirm
yaourt has a --noconfirm option I use.
I should use something else given yaourt is unmaintained and insecure, but I haven't found a helper that perfectly replaces all the functionality I use - git cache, built packages in their own dir I can host, the pkgbuild edit prompt, searches that include repos and AUR, and something akin to yaourt -Syua --devel --noconfirm that updates everything at once without hassle.
All the AUR helpers I've (casually) tried out were missing at least one of those.
Has anyone taken over pacaur development already? I miss it :(
Can’t say enough good things about trizen. Thought it was going to be one of those bandwagon things, but no it’s as reliable and simple as anything for packaging from the AUR.
I'd recommend trizen. It has the same syntax as pacman/pacaur/yaourt. I used pacaur, but the developer abandoned it.
owlman by baskerville. wraps around pacman and cower
Yaourt :-p