3

In -like distros there is a cool tool for managing multible versions of tools: It is called update-alternatives. Manual.

For example, if I want to switch between two version of :

# update-alternatives --config gcc

then I can choose between gcc 4.9 or 5.4 and so on ...

If I want to switch whole toolchain (gcc, g++, gfortran, ...), I have to do it tool by tool.

My question is there some cool tool to change all at once? e.g:

# update-alternatives --config gnu-comp-coll

and change every one of it? Or do I have to make script to do it for me?

1 Answer 1

2

What you are looking for is environment module. It is a nifty tool to change your toolchain at once.

Environment modules are basically on every Linux repo, or you can find the source code as well as the documentation on their web page.

look at

http://modules.sourceforge.net/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .