10 lines
535 B
Bash
10 lines
535 B
Bash
|
#!/bin/bash
|
||
|
distrobox create -n arch -i quay.io/toolbx/arch-toolbox:latest
|
||
|
distrobox enter --name arch -- sudo pacman -Suy
|
||
|
distrobox enter --name arch -- sudo pacman -Sy --needed git base-devel
|
||
|
distrobox enter --name arch -- git clone https://aur.archlinux.org/yay-bin.git ~/Downloads/yay-bin
|
||
|
cd ~/Downloads/yay-bin
|
||
|
distrobox enter --name arch -- makepkg -siy
|
||
|
distrobox enter --name arch -- distrobox-export --bin /usr/bin/yay --export-path ~/Downloads/yay-bin
|
||
|
pkexec cp ~/Downloads/yay-bin/yay /usr/bin/yay
|
||
|
rm -rdy ~/Downloads/yay-bin
|