You are not logged in.

#1 2019-05-06 19:35:37

neopium
Member
Registered: 2019-05-02
Posts: 89

[SOLVED] How to install yay from a live USB key?

I know how to install yay:

git clone [url]https://aur.archlinux.org/yay.git[/url]
cd yay
makepkg -si

What I want to do is to install it from my live USB installer.

I have indeed created my own archiso, with an installation script that installs Arch from scratch and customizes it to my liking.

However, the installation script is executed as root and root cannot call makepkg. I have created my user account on the target system using:

arch-chroot /mnt useradd -m -g users -s /bin/bash -G wheel,uucp "$user"

If I do su $user to execute makepkg, my user is not recognize as it is a target system user and not a live user.

Is there a simple way to install AUR from a live ISO?

Last edited by neopium (2019-05-06 20:21:56)

Offline

#2 2019-05-06 19:45:16

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

Re: [SOLVED] How to install yay from a live USB key?

Build the package on an existing system.
Rebuild the live ISO including the package file (and all of the dependencies' package files)
From the live ISO, use pacman -U to install the packages.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2019-05-06 19:58:31

neopium
Member
Registered: 2019-05-02
Posts: 89

Re: [SOLVED] How to install yay from a live USB key?

Thanks.

So I did the following:

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -s

I now have in my yay directory the following files/folders:

pkg  PKGBUILD  src  yay-9.2.0-1-x86_64.pkg.tar  yay-9.2.0.tar.gz

Which one should I copy in the ISO and point pacman -U to?

Offline

#4 2019-05-06 20:15:16

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] How to install yay from a live USB key?

This information can be found in the manpages of makepkg and pacman. You can literally search for "pacman -U".

Besides that, there are only five entries in this folder. Try them.

Offline

#5 2019-05-06 20:15:53

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: [SOLVED] How to install yay from a live USB key?

pacman -U installs built packages.

Offline

#6 2019-05-06 20:21:38

neopium
Member
Registered: 2019-05-02
Posts: 89

Re: [SOLVED] How to install yay from a live USB key?

And the winner is:

sudo pacman -U yay-9.2.0-1-x86_64.pkg.tar

Last edited by neopium (2019-05-06 20:29:35)

Offline

Board footer

Powered by FluxBB