• Rob's side project: I recently started Gun-Forums.com and we currently have a $100 raffle - if you're into guns, join up and enter the raffle to win $100.00. Gun Forums

yay not installing in Arch linux


Hello again,
After a fresh install of Arch Linux, I went ahead and made a shell program (.sh) which has these lines:

echo Installing yay in this machine
git clone https://aur.archlinux.org/yay.git
cd yay
sudo makepkg -si
But it shows an error stating like this:
ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system.
What is a workaround for this??


Hey but I'm actually creating this so that when a user has just installed Arch and when they clone my repository, the user just has to run the .sh file and nothing should go wrong.

So is it possible to create a temporary user (like say "LiveUser"), switch to that specific user, run the command and then delete "LiveUser" with shell commands?


Well-Known Member
You may move the package files you want to build to this users home dir, so he really has the rights he needs to run makepkg.

Members online

Latest posts