Skip to content

123 comments

Yay is great! A lot like yaourt!

69 points

AFAIK it's leaned on pacaur

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.

11 points

Coming from pacaur, yay is absurdly fast. I was impressed when I changed.

1 points

trizen is what I use :)

52 points

Thanks. I’ll give that a try.

4 points

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!)

8 points

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.

3 points

pikaur, if you want fewer* dependencies.

25 points

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

21 points

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.

14 points

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.

1 points

Is pikaur the one that was posted to this sub recently? The one that hardly has any dependencies and keeps it simple?

4 points

Yay is very good and has no dependencies (except for the Go compiler, but you can use the yay-bin package if you don't want the compiler).

4 points

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.

2 points

aurutils. Build in a clean chroot. Nuff said.

20 points

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.

7 points

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.

18 points

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).

5 points

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.

1 points

Mods, can we please pin as this question comes up every other day?

18 points

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...

10 points

Someone suggested auto-moderation bot to catch these and just refer to the wiki. I simply haven't had time to look into it.

5 points

I only have

% pacman -Qmq | wc -l
21

foreign packages, which don't involve any complex dependencies or very frequent updates, so I just do

% git clone https://aur.archlinux.org/pkg-name.git
% vim PKGBUILD
% makepkg -csi

to install,

% auracle sync

to check for updates with auracle, and

% git fetch
% git diff HEAD..origin/master
% git merge FETCH_HEAD
% makepkg -csif

to fetch, verify, merge, and install the changes.

Edit: Change

% git pull
% git diff HEAD~1

to

% git fetch
% git diff HEAD..origin/master
% git merge FETCH_HEAD

following /u/z3ntu's suggestion.

6 points

You should replace your git pull -> git diff HEAD~1 workflow with

git fetch
git diff HEAD..origin/master
git merge FETCH_HEAD

That way you not only get the diff from the last commit but all since you last updated.

3 points

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!

3 points

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.

6 points

Knowing your reasons to want a change would help with answering that. I prefer yaourt personally.

3 points

YaY FTW. From all the aur helpers I've tried, YaY is the most polished one.

3 points

First time I saw it written like that. Maybe I should rename my project to AuRuTiLs for maximum edge.

3 points

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
}
3 points

Use aurman, it has the least weird dependenies, unless you actually want to install Go...

2 points

unless you actually want to install Go...

Use the yay-bin package if you don't want to.

2 points

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.

2 points

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.

2 points

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.

1 points

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.

1 points

No, they're not. Why not invest the effort you put into spreading obvious lies to fixing that horrendous software?

1 points

Why do you not like yaourt?

1 points

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.

2 points

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.

1 points

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.

1 points

I'd recommend trizen. It has the same syntax as pacman/pacaur/yaourt. I used pacaur, but the developer abandoned it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.