Skip to content

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:

  1. 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.
  2. Run a pacman repo server that provides my own AUR packages - I'm not sure how, or if this even exists.
  3. 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.

4 points10 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 100% up
Kind
Text
ID
ff932o

Author

1
posts
9
comments
0
media
View profile

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.

5 points

So I make a single big file repo.db.tar.gz that contains all AUR builds and share it? Sounds not bad.

2 points

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.

4 points

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 -Syu and 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.

aurutils is handy little helper that simplifies the whole process, though it is not necessary.

2 points

I think aurutils is perfect for this.

It's a collection of scripts to help you build an aur package into a custom repo.

3 points

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.

4 points

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.

2 points

I have also three Arch machines and I build the packages in a clean chroot on my server
Via repoctl I manage the database (Bonus: repoctl status -a shows possible updates) and via Nginx I share the folder with packages and database on a domain

Once everything set up with some very basic shell scripts it's basically almost no work to manage

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.