How to get a yay install to continue?

I issue in terminal:

yay -S

It takes a while to build so I do other things. When I get back the final install has failed because I was there to enter the password.

Is there a way to just finish the install? If I enter the command again it appears to build again from scratch, takes a long time and I miss the password prompt again.

I have ccache set up. yay doesn’t seem to care.

Go to the folder of your build and run:

sudo pacman -U *.pkg.tar.zst
3 Likes

trizen will wait for you :wink:

2 Likes

In future, you can use

--sudoloop
              Loop sudo calls in the background to prevent sudo from timing out during long builds.

I combine it with

 --batchinstall
              When  building  and  installing  AUR packages instead of installing each package after building, queue each package for install. Then
              once either all packages are built or a package in the build queue is needed as a dependency to build another  package,  install  all
              the packages in the install queue.
2 Likes

yay -S --norebuild package_name

seems to do it
but simply

yay -S package_name
also just uses what is already there

without ccache

maybe the way you did that is the cause?

2 Likes

Does this imply yay doesn’t know about ccache?

It was simply a question you might ask yourself.
But let me ask it myself:
how did you set it up?

The Arch wiki states a simple change has to be made to /etc/makepkg.conf in order for ccache being integrated with makepkg - which is what yay uses in turn.

see here

But, as I said:
yay does the caching by itself - not quite like ccache, but when nothing changed it will use what is already there

Yes, the BUILDENV, that is the change that was made (quite some time ago) and has appeared to be working for when it is built with pamac and pacman.

This package recently stopped showing git updates, that I know are happening. So, was using yay to try to “unplug” the pipe. And yay is building the latest, but then I ran into the password prompt timing out.

… if ccache seems to get in your way
simply put the ! back in /etc/makepkg.conf temporarily
would be my suggestion.

But your package is already built - just not installed yet
See what @megavolt said - you can install it that way.

It is in:
~/.cache/yay/program_name/

no need to run
yay -S --norebuild

Sure, I don’t think ccache is in the way. I might have confuse this thread by mentioning it at all…

Yay always asks if it should clean build, so when the package is built but you weren’t around to enter the password, just re-run but say no to clean build, and a few seconds later you enter your password because it skips the long build process, and proceeds to the install step.

2 Likes

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