Ask Your Question

Install multiple versions of same library and "switch" between them

asked 2018-06-14 09:31:13 -0500

ds0 gravatar image


on Mac with HomeBrew I can have several versions of the same library installed and switching between them is a matter of doing a "brew switch". On Fedora I am struggling to find an equivalent. For what I can see, I can only install a specific version of a package. Sure I can download the sources and install a separate "version" myself but I was wondering if there is a way to let dnf install two versions of a package and then switch between them as needed.


edit retag flag offensive close merge delete



People are developing flatpak (Fedora) and snap (Ubuntu) for that purpose. Containers (docker) are similar for usage in servers.

fcomida gravatar imagefcomida ( 2018-06-14 13:26:34 -0500 )edit

2 Answers

Sort by » oldest newest most voted

answered 2018-06-22 15:31:50 -0500

Aeyoun gravatar image

updated 2018-06-24 09:13:34 -0500

Fedora Modularity addresses this very issue. It’s currently only available in Server edition, but there is a proposal to enable Modularity across all editions for Fedora 29.

edit flag offensive delete link more

answered 2018-06-19 00:17:20 -0500

fr0xk gravatar image

You can use 'nix' package manager in order to do so. Nix is cross-platform package management system. Few years before, Linuxbrew, a common package manager for Linux and Mac OS X used to install packages without root or sudo user privilege. "Nix" is similar package manager, which has more features than Linuxbrew. Unlike other package managers, it provides side-by-side installation of multiple versions of same package, atomic and rollback support, per-user package management, easy setup of package development environments, and much more. It is originally developed for NixOS, a GNU/Linux distribution with a unique approach to package and configuration management.

Installing Nix package manager is trivial. To install it on your Linux box, run as normal user:

$ curl | sh

After installing Nix, log out and log in back to your system to verify that the necessary environment variables are properly set.

Read the nix command manual over here:

Note: Please consider using Flatpak or snap for GUI applications with same paradigm

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-06-14 09:31:13 -0500

Seen: 63 times

Last updated: yesterday