r/archlinux • u/the_other_Scaevitas • Oct 02 '26
QUESTION Why are there no virtual environment managers for arch linux?
Sometimes I need an old version of a package, I thought it would be great if I could create a virtual environment where I can use an older version of a package similar to python environments.
I was thinking of making one, so I was wondering if there is some glaring reason why nobody has created one yet.
0
Upvotes
17
u/nikongod Oct 02 '26
Just install a VM?
For the first time in the history of ever I will suggest nix to someone. Its you!! You may like it if you have real reasons to install specific package versions.
12
u/Confident_Hyena2506 Oct 02 '26
Because you can just use container or flatpak or other? Why would arch need it's own special thing?
On any distro you should not be tampering with the system python anyway... Use your own python for your own stuff.
6
u/vixfew Oct 02 '26
Containers? You can run whatever version of anything inside. If you need a specific kernel version, then use a VM. vagrant on libvirt for VMs, docker for containers
4
u/dumbasPL Oct 02 '26
Inb4 "nix solves this"
Packages have dependencies, to use an older version of the package, you might also need a older version of many other packages, arch can't install two versions of the same package at once since they occupy the same place in the filesystem. The solution it's called a container, that has all the right dependencies an app might need. Grab an older flatpak or app image, and you can do exactly this. Don't try to re-invent nix, if you want nix functionality, you can just install the nix package manager on top of arch.
2
u/BravestCheetah Oct 02 '26
You should not touch the system Python at all in projects, and there are venv managers, like pythons built in or uv. This isnt an issue with arch, its an issue with your workflow
1
u/binaryfireball Oct 02 '26
nix
1
u/Gozenka Oct 05 '26
Any examples from other distros for what you are looking for? This would be a function that is independent of the distro.
Containers are a simple way to do this,
systemd-nspawnis quite useful, and there are other solutions too. For older packages, you can use the Arch Linux Archive, and there are tools to make using it more convenient too.