I have installed gcc-4.8
and gcc-6
. The default gcc version is gcc-4.8
, but I want to change the default gcc version to gcc-6
, so I do the following:
$ sudo update-alternatives --remove-all gcc
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 20
then the default gcc version has changed to gcc-6
, but when I run command
$ man gcc
the man page version of gcc is still gcc-4.8
. How can I change the man page version of gcc to gcc-6
? Thanks!
Sorry for my bad English.