I've installed gcc-9 and g++-9 as written in this answer
answer
and updated the alternatives as shown in the comment, still when I type man g++ it shows the man page of the previous version.
The output of gcc -v and g++ -v is 9.2.1
Asked
Active
Viewed 206 times
1
vib_29
- 11
$ gcc --version... or$ gcc -v. ... About man pages ( $ man gcc ) : The link made with "update-alternatives" is for /usr/bin/ only, not ///man/ – Knud Larsen Feb 13 '20 at 12:32