# How to install Gfortran 9, 10 or 11 on Ubuntu

**URL:** <https://fortran-lang.discourse.group/t/how-to-install-gfortran-9-10-or-11-on-ubuntu/2043>\
**Category:** Uncategorized\
**Created:** [October 10, 2021, 2:25pm UTC](https://fortran-lang.discourse.group/t/how-to-install-gfortran-9-10-or-11-on-ubuntu/2043 "2021-10-10T14:25:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [October 10, 2021, 2:25pm UTC](https://fortran-lang.discourse.group/t/how-to-install-gfortran-9-10-or-11-on-ubuntu/2043/1 "2021-10-10T14:25:15Z")

</div>

[How to install Gfortran 9, 10 or 11 on Ubuntu 20.04 LTS](https://www.how2shout.com/linux/how-to-install-gfortran-9-10-or-11-on-ubuntu-20-04-lts/)  
Linux Shout  
October 7, 2021

> #### For Version 10
> 
> sudo apt install gfortran-10
> 
> #### For Gfortran Version 11 and other latest one in development:
> 
> However, currently while writing the article Gfortran version 11 was not available in the default repository of Ubuntu 20.04. Hence, if you want that then can add a PPA.
> 
> sudo add-apt-repository ppa:ubuntu-toolchain-r/test
> 
> (followed by)
> 
> sudo apt install gfortran-11

On Windows I use gfortran 12 from [equation.com](http://equation.com). How do you install gfortran 12 on Ubuntu?
