Sharing AUR builds across multiple machines
Hi all,
I have three Arch Linux machines: a desktop, a laptop, an NAS. I'm using yay for AUR helper, and pikaur just in case yay doesn't work.
Things used to be just fine, until I starting to have AUR packages that requires insane build times like llvm-git and zfs. It becomes a nightmare to build packages in every machine, and I started to avoid upgrading AUR packages.
I'm starting to think of sharing AUR builds. I come up three ways:
- Share AUR directory (e.g. ~/.cache/yay ) over NFS - Sounds great but I'm doubt if building packages on NFS will work fine without having reduced performance too much.
- Run a pacman repo server that provides my own AUR packages - I'm not sure how, or if this even exists.
- Send built .tar.gz files manually to another machine - I don't want to do this...
Is there a simpler way to do this, what is the best way to share AUR builds? Thanks in advance.
Edited 8 Mar 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 4 · 100% up
- Kind
- Text
- ID
- ff932o
10 comments
I am fan of the "custom repo" solution. Contrary to what you may initially think, it is rather painless to setup. It essentially comes down running a couple commands and having some type of shared location over a network to keep the pre-built packages. Here is the wiki link to get you started. There are some tools to make it quite trivial to setup.
So I make a single big file repo.db.tar.gz that contains all AUR builds and share it? Sounds not bad.
As an added bonus, if you use aurutils as your Aur helper it automatically adds built packages there so you can just install them with pacman.
Somewhat. You generate the db file (see the instructions on how), which contains information of what is in the repo (i.e. what those progress bars are downloading when you
pacman -Syuand it is checking for updates). You have a directory that that has your binary tar.xz (actually .zst now) packages. When your package updates, you simply replace the binary and regenerate the database file. Any system that you have added this repo to will pull the new package on the next update, which is already built.aurutilsis handy little helper that simplifies the whole process, though it is not necessary.I think aurutils is perfect for this.
It's a collection of scripts to help you build an aur package into a custom repo.
Yep, this is exactly how I use aurutils. I use it for managing and updating AUR packages on my local machine and then rsync the resulting repo to my web server for another one. Works great.
This is just an idea I have not tested yet, bur When reading the yay usage the other day I notice you can point it to a custom AUR website.
So I wonder if possibl, as the AUR website looks open source, to administrate your own AUR website internally, and you push packages to it, then on other machines you would just need to alias to the new yay command with the aur option pointing to your internal website.
I have also three Arch machines and I build the packages in a clean chroot on my server
Via
repoctlI manage the database (Bonus:repoctl status -ashows possible updates) and viaNginxI share the folder with packages and database on a domainOnce everything set up with some very basic shell scripts it's basically almost no work to manage
I use pacpush for this. It is in the AUR.
I have created my aur repo on gitlab pages. :)
I even generated gpg keys and signed it. xd
https://kamcuk.gitlab.io/arch-repo/index.html