You are not logged in.

#1 2024-10-08 23:55:17

Wanting1378
Member
Registered: 2024-09-01
Posts: 5

[SOLVED] Installing with 'makepkg -si' vs 'pacman -U'?

Hi there. I'm trying to make an install script and wanted to include yay(!), but I can't run 'makepkg -si' as root, and pretending to be a user is problematic.

Searching and testing it seems that I could use 'makepkg' without arguments as user, and then use 'pacman -U' to install the package. However I can't figure out if this is adequate or if it could bring other problems.

Last edited by Wanting1378 (2024-10-09 01:15:52)

Offline

#2 2024-10-09 00:05:42

mpan
Member
Registered: 2012-08-01
Posts: 1,336
Website

Re: [SOLVED] Installing with 'makepkg -si' vs 'pacman -U'?

`makepkg -i` is just invoking `sudo pacman -U build-result.tar.zst`.

Last edited by mpan (2024-10-09 00:06:00)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2024-10-09 00:26:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,232

Re: [SOLVED] Installing with 'makepkg -si' vs 'pacman -U'?

If I read this correctly, you are trying to do this logged in a root.  Why?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2024-10-09 00:53:22

Wanting1378
Member
Registered: 2024-09-01
Posts: 5

Re: [SOLVED] Installing with 'makepkg -si' vs 'pacman -U'?

@mpan
Thanks smile So I understand that the additional '-s' in makepkg is not being replicated and I will have problems with dependencies, or is there some other way for it to do it?

@ewaller
I am making an arch installation script, preferably having it all together and automated. Perhaps it would have been simpler to ask for the cleanest way to install yay/AUR from arch-chroot.

Offline

#5 2024-10-09 01:11:02

mpan
Member
Registered: 2012-08-01
Posts: 1,336
Website

Re: [SOLVED] Installing with 'makepkg -si' vs 'pacman -U'?

Wanting1378 wrote:

@mpanThanks smile So I understand that the additional '-s' in makepkg is not being replicated and I will have problems with dependencies, or is there some other way for it to do it?

`makepkg -s` installs packages needed for building. So while `pacman -U` doesn’t replicate that, there is no sense for it to provide that feature. `pacman -U` will install all (available) dependencies required for package installation, just like `pacman -S` would.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#6 2024-10-09 01:15:35

Wanting1378
Member
Registered: 2024-09-01
Posts: 5

Re: [SOLVED] Installing with 'makepkg -si' vs 'pacman -U'?

Cool! Then it will be noob proof and no additional worries. Thank you again.

Offline

Board footer

Powered by FluxBB