You are not logged in.

#1 2024-07-02 13:16:11

reup
Member
Registered: 2017-02-09
Posts: 10

do a aur update building but not installing package [Solved]

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

#2 2024-07-02 13:26:15

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: do a aur update building but not installing package [Solved]

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=0

at 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

Online

#3 2024-07-02 13:34:44

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,193
Website

Re: do a aur update building but not installing package [Solved]

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

#4 2024-07-02 13:34:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,960

Re: do a aur update building but not installing package [Solved]

Yay also has a --sudoloop option so that yay caches your sudo password for it's duration.

Offline

#5 2024-07-02 14:07:39

reup
Member
Registered: 2017-02-09
Posts: 10

Re: do a aur update building but not installing package [Solved]

excellent, 3 great suggestions, I will try all

thanks for the quick support !

Offline

#6 2024-07-02 14:24:07

reup
Member
Registered: 2017-02-09
Posts: 10

Re: do a aur update building but not installing package [Solved]

Lone_Wolf wrote:

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

#7 2024-07-02 16:31:50

reup
Member
Registered: 2017-02-09
Posts: 10

Re: do a aur update building but not installing package [Solved]

I used the --sudoloop option from yay and that worked perfectly well

thanks all

Offline

#8 2024-07-03 10:04:30

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: do a aur update building but not installing package [Solved]

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

Online

Board footer

Powered by FluxBB