Installing AUR packages after using archinstall
Installing AUR packages after using archinstall
Hi! I am trying to automate my install process by creating a json file that can be used by archinstall
(example). One of the example shows how you can run custom commands to get paru
(yay
, but written in Rust):
"custom-commands": [ "cd /home/devel; git clone https://aur.archlinux.org/paru.git", "chown -R devel:devel /home/devel/paru", ]
However, their example doesn't provide any further information about installing packages with paru. I would like to install some stuff just for my user.
My idea was the following:
- using archinstall, install everything according to the config
- disregard the "custom-commands" option in the config and create a separate custom script
- get all the users from the system and allow user to choose which one to chroot as
- run all commands as the chosen user ( e.g., install Rust with
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
)
I need to install a few packages that are not in the official repository, as well as moving my dotfiles in /home/user/.config and making sure everything is accessible by that user. If there are any better approaches to this, I would be glad to hear them!
An example of the script I am planning to use after running archinstall:
imo you should make a repos dir to clone paru into
If I understand correctly, this would just provide the binary for paru without really making it accessible to the user, no?
In the end, I just decided to copy all my dotfiles to /home/user and running an additional script after reboot. For some reason, if you try to arch-chroot and install it tries to build everything as root (even after providing "-u user" to arch-chroot).
I meant a directory in the home directory of the user.