Struggling to update due to password prompt after long update cycle

I’m trying to do system updates. It’s been a couple weeks, so there’s a fair amount, including an AUR package “rustdesk” which takes a while to build/install. I’m using yay -Syyu and it prompts for my password up front. After who knows how long of building/installing, it prompts again for my password. If I don’t babysit it and enter the password within (I’m not sure) how long, it fails due to missing credentials.

How can I either provide the password up front, or make it wait longer, or something so that I can do a system update without being expected to stare at my screen for 15-20 minutes while it builds rustdesk?

Add --sudoloop

yay -Syu --sudoloop

Alternatively, you can put it in the config file.

4 Likes

Thank you! I feel a little embarrassed and should have checked the man page real quick, that was easy!

1 Like

i’m new to arch ,just want to find out what if the difference between

yay -Syyu

, and just

yay

, to update system ?

yay is the same as yay -Syu. It is a good command for updating the system

yay -Syyu forcibly downloads the full databases every time. It shouldn’t be used unless there is some specific situation that requires it since it will waste bandwidth on the mirrors.

1 Like

thanks for that , so i’ve also encountered it asking for password again while i’t been running for awhile , and i’ve missed it and it failed.
so if i use the

yay -Syu --sudoloop

command ,rather than just

yay

it’s better ?

Yes, adding --sudoloop keeps your sudo session alive in the background so that when it needs the privileges at the end, you don’t need to type it in again and it just works.

sorry for sounding dumb lol but i’m coming from zorin ,where commands are different.
i’m busy making a list of commands to keep system updated ect , just want to know the little nettle gritty

so yay --sudoloop would work ?
or should it be yay -Syu --sudoloop

Both are the same.

1 Like

good , thanks !

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.