ubuntugccaptgcc11

When gcc-11 will appear in Ubuntu repositories?


GCC 11.1 was finally released yesterday. However, now it can only be built from source, so I'm wondering when we can get it with apt?


Solution

  • On Ubuntu 20.04, I followed the instructions here:

    Which is to:

    1. Update the listed mirrors by adding a line to your /etc/apt/sources.list like this:

      sudo add-apt-repository 'deb http://mirrors.kernel.org/ubuntu hirsute main universe'

      Choose a mirror based on your location from the list. I chose the kernel mirror as I am in North America.

    2. sudo apt-get update

    3. sudo apt-get install gcc-11

    After that which gcc-11 should produce a path to gcc-11. On my machine it was:

    which gcc-11
    

    produces: /usr/bin/gcc-11