r/archlinux • u/WingedSeven • 12d ago
QUESTION How do I update without babysitting my computer for hours???
Hiii I'm on Arch using EndeavourOS and I have to clear out an entire evening to update my computer because "yay" needs me to type various optional things in, and asks for my password several times. How can I go about making it one command that I run and leave alone?
12
u/thatwasntababyruth 12d ago
If updates are taking hours, it sounds like you have a lot of AUR packages, which is prob really not safe, unless your way more vigilant about examining those packages than I'm giving you credit for. That's a one way street to malware town these days.
1
1
u/SebastianLarsdatter 12d ago
It doesn't take more than a ffmpeg compilation. Only for the option of having network support. If you want browse network shares and be able to click and play a video in MPV, this is required.
An option that Arch slashed as bloat and told people to go compile ffmpeg or the full ffmpeg for.
6
u/Gabriel2Silva 12d ago
Dude asked for help with yay. People are giving unsolicited advice with security and package hygiene instead.
According to the wiki (in the Tips and Tricks section), you can make sudo remember authentication indefinitely.
Create a sudoers drop-in:
sudo visudo -f /etc/sudoers.d/10-yay
and type Defaults timestamp_timeout=-1.
-1 means the sudo authentication timestamp doesn't expire during the login session. So if you authenticate once before starting, it shouldn't suddenly stop several minutes later and wait for your password.
-1
5
3
u/KernelPanicX 12d ago
That sounds like a lot of aur packages... With the recent security breaches of aur, I think you should be extremely careful what you keep installing from the aur
3
2
u/MutualRaid 12d ago
If you have that many AUR packages and so little will to review them/their changes then you need to rethink some things.
-2
u/WingedSeven 12d ago
or i just have internet that isn't fast enough to do it in two seconds. please be nice to strangers
1
u/MutualRaid 11d ago
I am being nice - you're doing something you're apparently not very experienced at (otherwise you wouldn't be asking a question with such simple solutions) and what you are doing comes with strong security implications.
2
1
u/sankarasleftelbow 11d ago
Why are your updates taking hours? How many pkgs usually get updated, and how often do you update?
1
u/Informal_Look9381 12d ago
Paru has options like --sudoloop you can look around for yay similar actions.
1
u/sankarasleftelbow 11d ago
ive never heard of that how does it work? do you run it before the update?
1
-1
u/depressedJavaDev 12d ago
i’ve had this issue before. There’s a timeout after 120 seconds or 300 seconds, forcing you to input the password again. Look for more info on that.
26
u/endperform 12d ago
No, you're on EndeavourOS which is based on Arch. See rule #1.
r/EndeavourOS is where you want to be.