(paru/yay) Update aur apps without having to worry about a sudo prompt mid update (`--sudoloop`)

3 months ago by zippy to c/archlinux

You can use --sudoloop option with your normal update command and paru/yay will ensure the terminal session remains authenticated until the command has ended. For example:

paru -Syu --sudoloop

This way, after long builds, paru/yay won't have to wait for you to enter the sudo pass, or timeout and thus fail to install the built packages. This was something that really annoyed me as someone new to Linux/Arch.

exu 12 points 3 months ago

You can also set the option in the config files

path: 0 24760399, hotness: undefined, score: 12, children: 1
CalcProgrammer1 2 points 3 months ago

Nice, I need to edit those files then.

path: 0 24760399 24768692, hotness: undefined, score: 2, children: 0
Veraxis 4 points 3 months ago

I didn't know that. I will have to try that out. Thanks.

path: 0 24760383, hotness: undefined, score: 4, children: 0
CalcProgrammer1 4 points 3 months ago

Nice, I need to remember this, the password prompt stalls my installs all the time.

path: 0 24768675, hotness: undefined, score: 4, children: 0
Dotcom 3 points 3 months ago

Sick

path: 0 24760361, hotness: undefined, score: 3, children: 0
lIlIllIlIIIllIlIlII 3 points 3 months ago

Do you know how to know what packages are those that last forever to compile?

path: 0 24764001, hotness: undefined, score: 3, children: 3
zippy 1 point 3 months ago

Uhh depends on your rig I guess. I build the various emulators from git and some of them like vita3k can take awhile.

But for me its more about being able to leave the update unattended, knowing that when I come back they will all be done and I can close the terminal window.

path: 0 24764001 24769819, hotness: undefined, score: 1, children: 0
Veraxis 1 point 3 months ago

Often if there is a -bin version of a package, it is a precompiled binary and will not need to be compiled from scratch. As a general rule, the -bin version of the packages are usually preferred when available.

path: 0 24764001 24837757, hotness: undefined, score: 1, children: 1
lIlIllIlIIIllIlIlII 2 points 3 months ago

Yes, Im aware. Thanks anyway.

path: 0 24764001 24837757 24838019, hotness: undefined, score: 2, children: 0
Engywuck 3 points 3 months ago

Nice!

path: 0 24760854, hotness: undefined, score: 3, children: 0
archlinux
archlinux

@lemmy.ml

login for more options
10002
427
82

The beloved lightweight distro

go to feed...