You are not logged in.

#1 2025-01-23 17:47:49

Atrexian
Member
From: Czech Republic
Registered: 2022-02-28
Posts: 30

Build package from AUR just to get .pkg.tar.zst

Hello, how can I just build package from AUR to get .pkg.tar.zst file, but do not install the package itself on my machine? I am working on repository and I just wanted to make package files to add them to the repo. I used "makepkg" command and it worked with some small packages, but when I want to build something bigger like yay it has problem with dependenciences (requirment packages) and I dont wanna install them you know. I want just to build package and get .pkg.tar.zst. Thanks!

Offline

#2 2025-01-23 17:55:14

cmm11
Member
Registered: 2018-02-18
Posts: 51

Re: Build package from AUR just to get .pkg.tar.zst

makepkg --help

-s, --syncdeps   Install missing dependencies with pacman

so just do

makepkg -s

Last edited by cmm11 (2025-01-23 17:56:11)


$20 Free Credit Hetzner - https://hetzner.cloud/?ref=fuVilhv403fA

Offline

#3 2025-01-23 17:56:12

Atrexian
Member
From: Czech Republic
Registered: 2022-02-28
Posts: 30

Re: Build package from AUR just to get .pkg.tar.zst

cmm11 wrote:

makepkg --help
-s, --syncdeps   Install missing dependencies with pacman

so just do makepkg -s

Thanks but as I said, I dont wanna insall packages in my system that I dont need and need them just for building package

Offline

#4 2025-01-23 18:05:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,923

Re: Build package from AUR just to get .pkg.tar.zst

https://wiki.archlinux.org/title/Develo … ean_chroot -- for the canonical way of building packages that are intended to be distributed beyond your own machine.

Offline

#5 2025-01-24 00:28:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,583
Website

Re: Build package from AUR just to get .pkg.tar.zst

Mod note: moving to Creating and Modifying Packages.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2025-01-26 09:49:38

Atrexian
Member
From: Czech Republic
Registered: 2022-02-28
Posts: 30

Re: Build package from AUR just to get .pkg.tar.zst

Thanks so much smile

Offline

#7 2025-01-26 09:50:23

Atrexian
Member
From: Czech Republic
Registered: 2022-02-28
Posts: 30

Re: Build package from AUR just to get .pkg.tar.zst

WorMzy wrote:

Mod note: moving to Creating and Modifying Packages.

I am sorry for that. Thanks for moving smile

Offline

Board footer

Powered by FluxBB