You are not logged in.
Hi all,
Is there something like Debian's alternatives system in Arch ?
As a Java developer, I often need to switch between Java 5 and 6, and Maven 2 and 3, which are different packages providing the same commands... But those are only examples. How do you usually deal with that ?
The way Python 2/3 is dealt with seems to indicate there is no real solution ?
Last edited by nicoulaj (2011-12-01 13:57:47)
Offline
Arch follows upstream, ships the latest and greatest software.
Both python 2 and 3 are available, the thing that changes is which version is the default.
Offline
I understand (and agree with) the choice made. Python 3 is the default and it provides the "python" command, python2 provides the "python2" command. Perfectly fine
What we are talking about here is packages that provide different implementations of the same command, and ship with the same command name, ie conflict with each other. The best example is openjdk vs jdk. No way/utility/hack to switch between those packages without uninstalling+installing ?
Offline
I understand (and agree with) the choice made. Python 3 is the default and it provides the "python" command, python2 provides the "python2" command. Perfectly fine
What we are talking about here is packages that provide different implementations of the same command, and ship with the same command name, ie conflict with each other. The best example is openjdk vs jdk. No way/utility/hack to switch between those packages without uninstalling+installing ?
I don't know if this will work, but:
you could build both manually via abs and change the prefix of both. For example build openjdk with PREFIX=/usr/local/openjdk-prefix and jdk with PREFIX=/usr/local/jdk-prefix.
This way, to switch between both, you just have to edit your $PATH to point to /usr/local/jdk-prefix/usr/bin or /usr/local/openjdk-prefix/usr/bin respectivly.
Offline
Offline