If I have a clean OS image (in my case created with multipass) and I want to install a c-compiler, why is it not set as default after installing?
$ sudo apt install clang-15
...
$ cc
cc: command not found
What do I need to do, so that /etc/alternatives/cc exists? Surely I am not expected to create a symlink manually?
$ update-alternatives --list cc
update-alternatives: error: no alternatives for cc
Shouldn't clang-15 show up in here?
UPDATE
$ sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-15 60
$ sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-15 60