When i enter following command in the terminal:
gcc --version
It's output something like this:
gcc (Ubuntu 6.5.0-2ubuntu1~18.04) 6.5.0 20181026
...
But when i enter below command to see version of the installed gcc package:
apt-cache show gcc | grep Version
I see this:
Version: 4:7.4.0-1ubuntu2.2
Version: 4:7.3.0-3ubuntu2.1
Version: 4:7.3.0-3ubuntu2
Is it normal?
Which version used by software that needs gcc?
gcc --version
andapt-cache show gcc | grep Version
. 2. How to choose which gcc version to use if multiple versions of gcc are installed. – karel May 21 '19 at 13:54