When using sudo yay it recommends not using sudo. It seems I had two different outcomes from using sudo and then from not using it. Having used it, what effect does this have?
When using sudo yay it recommends not using sudo. It seems I had two different outcomes from using sudo and then from not using it. Having used it, what effect does this have?
Running any AUR helper (I recommend
paru
instead ofyay
but either is a good option) should always be done with a normal user and never withsudo
.This is because both the download of
PKGBUILD
as well as the download of the sources and the compilation must be done with a normal user. Doing that as root poses a HUGE risk to the integrity of the system, a badPKGBUILD
, a source code with errors, a script with a space where it shouldn’t be and you can even break your system completely, you could even execute malicious code!It is the AUR helpers themselves that will (eventually) ask you for a
sudo
authentication for when they need to do the final step of installing the package once it has been built.