You are not logged in.

#1 2024-05-14 07:53:28

hikmateustad
Member
Registered: 2022-01-23
Posts: 44

How to install multiple versions of the same aur package

Preferably in different locations so that data and settings do not collide.

Thank you in advance for your time.

Offline

#2 2024-05-14 07:59:21

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

Re: How to install multiple versions of the same aur package

You cannot install multiple versions of the same package at once. This is not how package management works.
There are, for certain use cases, however packages that provide different versions of a software (e.g. python, php, openssl) by means of different package names.
At any rate, this sounds like an x/y issue to me. What's your real goal here?


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#3 2024-05-14 08:39:59

hikmateustad
Member
Registered: 2022-01-23
Posts: 44

Re: How to install multiple versions of the same aur package

schard wrote:

What's your real goal here?

To be able to install multiple versions of the same aur package; for testing out and comparing different features of the same software side by side.

Offline

#4 2024-05-14 09:45:08

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,394

Re: How to install multiple versions of the same aur package

Setup VMs that start from the same snapshot and let each build their specific version of that aur package as well as function as test beds.

For more info/alternatives look up software test environments.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building to complicated ?
Try clean chroot manager by graysky

Offline

#5 2024-05-15 13:36:21

hikmateustad
Member
Registered: 2022-01-23
Posts: 44

Re: How to install multiple versions of the same aur package

Lone_Wolf wrote:

Setup VMs that start from the same snapshot and let each build their specific version of that aur package as well as function as test beds.

For more info/alternatives look up software test environments.

VMs would be an overkill, just looking for possibility to install using aur pkgbuild scripts. Setting up, managing, maintaining VMs is a pain and ton of overhead. Just managing pkgbuild scripts should be way easier.

Offline

#6 2024-05-15 14:17:53

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: How to install multiple versions of the same aur package

This isn't about "managing pkgbuild" but "in different locations so that data and settings do not collide"
You could adjust the compiler instructions for the packages to use different prefixes, but (leaving aside that you're starting to re-invent containersystems) there's a decent chance that you'll still collide with the data the process reads/writes in your $HOME - you simply cannot guarantee your request w/o some degree of virtualization.

Software™ is typically not developed to run in different versions collision-free and there's certainly no generic approach for that. That's why VMs exist (and containers are more or less derived from that, just for dumber reasons than "compare stuff side by side")

Offline

#7 2024-05-15 18:50:53

hikmateustad
Member
Registered: 2022-01-23
Posts: 44

Re: How to install multiple versions of the same aur package

seth wrote:

Software™ is typically not developed to run in different versions collision-free and there's certainly no generic approach for that.

Snaps allow this exact functionality.

seth wrote:

That's why VMs exist (and containers are more or less derived from that, just for dumber reasons than "compare stuff side by side")

VMs solve way too many problems which I need not delve into while managing my time frugally.

Offline

#8 2024-05-15 19:00:24

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: How to install multiple versions of the same aur package

Snaps allow this exact functionality.

seth wrote:

leaving aside that you're starting to re-invent containersystems

Offline

#9 2024-05-16 07:42:37

hikmateustad
Member
Registered: 2022-01-23
Posts: 44

Re: How to install multiple versions of the same aur package

seth wrote:

Snaps allow this exact functionality.

seth wrote:

leaving aside that you're starting to re-invent containersystems

I did not invent Snaps ... I have faced dumber responses.

Offline

#10 2024-05-16 07:45:43

seth
Member
Registered: 2012-09-03
Posts: 54,562

Re: How to install multiple versions of the same aur package

You're apparently missing the point. You're trying to re-invent container systems resp. turn pacman into one.
Just use an existing container system and containers of the stuff you want to compare side-by-side.

Offline

Board footer

Powered by FluxBB