Quantcast
Viewing all articles
Browse latest Browse all 5979

How to update-alternatives everything

There are many questions on update-alternatives, e.g., this,but I cannot find how to do it for everything:

I need to make -12 a default version on 22.04.4 (instead of -11 version).

Do I need to manually and tediously run update-alternatives on each of:g++, gcc, gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, gfortran, cpp, gccgo, ...

And this is not a full list.

Or can I somehow make everything that is currently pointing to -11 to point to -12?


I actually do not need -11 (and, correspondingly, alternatives). So if there is a way to remove all -11 stuff and have defaults to point to -12, that would work too.

Unfortunately, removing, say gcc, and installing gcc-12 does not automatically create a link /usr/bin/gcc -> gcc-12.


Viewing all articles
Browse latest Browse all 5979

Trending Articles