I installed multiple versions of gcc on a Ubuntu 16.04 and I'm wondering how to set up the system to use the latest version of gcc without uninstalling the older ones.
I'd prefer if it was a simple script and not a dependency because I'm installing it in a Docker container and I don't want to bloat it.