The goal of this repository is to host GNU Fortran packages for macOS. These are simple installers, that will install the GCC compilers (including gfortran) in /usr/local/gfortran.
| GCC/gfortran version | macOS version | download links |
|---|---|---|
| GCC 16.2 | for macOS 26 (Tahoe) | Apple Silicon |
| GCC 15.3 | for macOS 26 (Tahoe) | Apple Silicon |
| GCC 14.2 | for macOS 15 (Sequoia) | Apple Silicon or Intel |
| GCC 14.2 | for macOS 14 (Sonoma) | Apple Silicon or Intel |
| GCC 13.2 | for macOS 14 (Sonoma) | Apple Silicon |
Follow this link to download for older versions.
sudo rm -rf /usr/local/gfortran /usr/local/bin/gfortran
sudo pkgutil --forget com.gnu.gfortran
If you are interested in how these installers are built, the documentation is here.