You are not logged in.

#1 2015-10-09 11:12:07

dan001
Member
Registered: 2015-10-09
Posts: 24

Is it possible to have more than one version of a program installed?

Hello guys

This is my firsy post in these forums. I had a doubt to create this topic in NC. Apoligise if my choise is a bad one.

I am using arch near a month. Before choosing arch, I wanted to use gentoo because of mentioned property. But I choose arch finally for other reasons. Is it possible in arch? smile

Last edited by dan001 (2015-10-09 11:17:04)

Offline

#2 2015-10-09 16:10:13

mpan
Member
Registered: 2012-08-01
Posts: 1,211
Website

Re: Is it possible to have more than one version of a program installed?

Either build it manually with a different prefix or chroot.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2015-10-09 21:57:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Is it possible to have more than one version of a program installed?

Why do you need it?

Offline

#4 2015-10-11 15:14:37

dan001
Member
Registered: 2015-10-09
Posts: 24

Re: Is it possible to have more than one version of a program installed?

My previous distro was debian (stable). it was very good in package managing. But pacman is better in my point of view, specially it has not a different repo for almost every package (I know, there is a bit exageration here). smile But arch is rolling release. In this way, you must update whole system. This is my idea: I can have stable and no-stable versions of a software/program/package to compare (the stability, features, maybe etc).

Last edited by dan001 (2015-10-11 15:17:47)

Offline

#5 2015-10-11 17:29:54

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Is it possible to have more than one version of a program installed?

You can have only one version of a package installed on a same system, i.e. you can't install the same package with different version from [core] and [testing] on the same arch system.

as mpan suggested, as a workaround you can build different version on different prefix (or have a PKGBUILD that does that). another option would be creating arch system with [testing] enabled and chrooting to it.

Offline

#6 2015-10-13 06:27:46

dan001
Member
Registered: 2015-10-09
Posts: 24

Re: Is it possible to have more than one version of a program installed?

Thanks all. I will try them and think chroot is a bit better for me. I red PKGBUILD and makepkg pages.  But it seems that setting suitable libraries for two versions of a package takes more times.

Offline

#7 2015-10-13 08:07:55

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Is it possible to have more than one version of a program installed?

Arch does not support several versions of a package. Be careful with the prefix. A lot of files commonly found in packages (among other desktop and icons files) don't respect the prefix. Unless you are extra careful you can very easily mess your system. The chroot method keep every clean but you have to install a whole system in your chroot, not only a single package. Have you a specific package in mind where you need two versions?

Offline

#8 2015-10-13 08:53:22

dan001
Member
Registered: 2015-10-09
Posts: 24

Re: Is it possible to have more than one version of a program installed?

Sure.I have a experience about chroot to an OS in debian. I can do it. As the example, Nautilus can be an example for me. Some features (as backspace shortcut) are not ON for nautilus when I installed it by hinting of Wiki. Whereas in past versions it was on (or GO option also). Absolutely We can do them by hand. This is only an example and maybe my target for doing this is not very important. But, I think like you: If want to do this, chroot likes to best answer.

Offline

Board footer

Powered by FluxBB