You are not logged in.

#1 2024-03-11 22:46:09

avidseeker
Member
Registered: 2022-09-06
Posts: 62
Website

Build on PC. Install on laptop

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

#2 2024-03-11 23:00:22

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,090
Website

Re: Build on PC. Install on laptop

Once the package is built, you can install it on any system with the respective architecture.


Inofficial first vice preseident of the Rust Evangelism Strike Force

Offline

#3 2024-03-12 00:30:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,984

Re: Build on PC. Install on laptop

I mean, that's how the Arch repos work. A package is a package.

Offline

#4 2024-03-12 02:38:13

avidseeker
Member
Registered: 2022-09-06
Posts: 62
Website

Re: Build on PC. Install on laptop

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

#5 2024-03-12 13:50:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,891

Re: Build on PC. Install on laptop

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

#6 2024-05-16 16:42:40

avidseeker
Member
Registered: 2022-09-06
Posts: 62
Website

Re: Build on PC. Install on laptop

V1del wrote:

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

#7 2024-05-16 17:21:57

loqs
Member
Registered: 2014-03-06
Posts: 17,913

Re: Build on PC. Install on laptop

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

Board footer

Powered by FluxBB