You are not logged in.
Pages: 1
I have an AUR package that requires compilation.
Is there a way to compile it on a separate machine, then install the compiled binaries locally?
Offline
Once the package is built, you can install it on any system with the respective architecture.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
I mean, that's how the Arch repos work. A package is a package.
Offline
I know, but is there an automated way to do this?
For example, making the remote machine host a repo for binaries, and local machine syncs the binaries and install them.
Here's a crude way to do it:
rsync -a builder@remote:.cache/yay ~/.cache/yay
and I'm looking for a better way
Last edited by avidseeker (2024-03-12 02:41:02)
Offline
Yes setting up a custom repo and housing the packages there.
https://wiki.archlinux.org/title/Pacman … repository
In terms of helpers that do this more properly than yay, look into aurutils: https://github.com/aurutils/aurutils
Online
In terms of helpers that do this more properly than yay, look into aurutils: https://github.com/aurutils/aurutils
Can you elaborate?
Say I have built a package on a remote Arch server, then I rsync'ed the .cache/yay/pkg to local. How can I get my AUR helper to only apply the installation part of the PKGBUILD and skip the build part of installing build dependencies and Make build.
Offline
You would add the built package to a custom repo either on the build server or directly on the target machine. After adding the custom repo to pacman.conf pacman would fetch packages from the repo in the same manner as it does from the official repositories.
Offline
Pages: 1