You are not logged in.
hi all
I have a laptop that I keep up to date for everyday use
on it, I have about 20 aur packages installed
those packages are not updated as regularly as the other
this is due to the fact that I cannot stay in front of the laptop while it is building the package then enter the password when needed
so aur update times-out on the first password request
I am using yay but am open to suggestions
my idea would be to start the update, the system would fetch all the necessary package and dependency, I would enter once the password for the dependency install then yay would build the 20 package and save the build
at a later moment, I would be able to connect to the laptop, restart the update and all package would be ready, so one password entered would be enough to install them all
long explanation, sorry, here is a TL:DR
how can I update/build all the aur package without installing them. keeping them ready for a later moment
thanks, any advice appreciate
Last edited by reup (2024-07-02 16:32:23)
Offline
my idea would be to start the update, the system would fetch all the necessary package and dependency, I would enter once the password for the dependency install then yay would build the 20 package and save the build
at a later moment, I would be able to connect to the laptop, restart the update and all package would be ready, so one password entered would be enough to install them all
Not sure if that is doable, but it feels like it would create a huge securityhole .
so aur update times-out on the first password request
My solution is to disable the timeout , so the system waits until I enter the password .
for sudo add
Defaults:your_username passwd_timeout=0at the end of your /etc/sudoers file .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Build the packages, add them to a local repo, upgrade them with the rest of your system at your leisure.
Mod note: moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Yay also has a --sudoloop option so that yay caches your sudo password for it's duration.
Offline
excellent, 3 great suggestions, I will try all
thanks for the quick support !
Offline
Not sure if that is doable, but it feels like it would create a huge securityhole .
this is something I cannot understand
any pacman or yay install that I do, I run the basic command, I am asked if I agree with the packages to install then I loose total control of the process
it is not like I will inspect the content of the tar or follow the display of the build. I (and probably everyone) will ask to install xxx, reply Y to the question and that's it
so if the package is build then installed or build wait then install, that should not change anything security-wise
am I wrong ?
Offline
I used the --sudoloop option from yay and that worked perfectly well
thanks all
Offline
Keep in mind I'm NOT a security expert and could very well be wrong.
I prefer to minimze the risk processes with elevated rights are hijacked , ending the elevation soon helps with that.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline