3

I recently downloaded the official desktop version of 20.04.1 and installed it on a machine. I was surprised to find that there was no gcc command available! I installed it with apt but I always thought that every flavour of Linux came with gcc straight out of the box.

Has something recently changed in the release philosophy of Ubuntu?

Pilot6
  • 92,041
NickT
  • 2,223

1 Answers1

3

The default version of gcc in Ubuntu 20.04 is gcc-9. Ubuntu 20.04 comes with gcc-9 installed by default which can be tested if it is installed by running apt policy gcc-9. gcc is the GNU C compiler, a fairly portable optimizing compiler for C. For more information type man gcc

gcc-10 is available in the default repositories of Ubuntu 20.04 and later. gcc-11 is available in Ubuntu 21.04 and later.

karel
  • 122,292
  • 133
  • 301
  • 332