How to Install and Uninstall gfortran Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 19,2024

1. Install "gfortran" package

This tutorial shows how to install gfortran on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install gfortran

2. Uninstall "gfortran" package

This tutorial shows how to uninstall gfortran on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove gfortran $ sudo apt autoclean && sudo apt autoremove

3. Information about the gfortran package on Ubuntu 20.04 LTS (Focal Fossa)

Package: gfortran
Architecture: amd64
Version: 4:9.3.0-1ubuntu2
Priority: optional
Section: devel
Source: gcc-defaults (1.185.1ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 15
Provides: fortran-compiler, gfortran-mod-15
Depends: cpp (= 4:9.3.0-1ubuntu2), gcc (= 4:9.3.0-1ubuntu2), gfortran-9 (>= 9.3.0-3~)
Suggests: gfortran-multilib, gfortran-doc
Filename: pool/main/g/gcc-defaults/gfortran_9.3.0-1ubuntu2_amd64.deb
Size: 1372
MD5sum: b9f7ba2e62eacf5993c8f1014cd69e85
SHA1: 051ee6ded945c80f41575a3c1be13cfb6ca4467a
SHA256: 625dfbfba9871b57aab7a69bae685047e7c2de7421d9809c829d702c5ffaad8a
Description: GNU Fortran 95 compiler
Description-md5: 19814cb032299ba2188b0196ece62ba3
Task: ubuntustudio-video