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

Last updated: November 22,2024

1. Install "gfortran-7" package

Please follow the instructions below to install gfortran-7 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install gfortran-7

2. Uninstall "gfortran-7" package

This is a short guide on how to uninstall gfortran-7 on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: gfortran-7
Architecture: amd64
Version: 7.5.0-6ubuntu2
Priority: optional
Section: universe/devel
Source: gcc-7
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 24955
Provides: fortran95-compiler, gfortran-mod-14
Depends: gcc-7-base (= 7.5.0-6ubuntu2), gcc-7 (= 7.5.0-6ubuntu2), libgfortran-7-dev (= 7.5.0-6ubuntu2), libc6-dev (>= 2.13-0ubuntu6), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), zlib1g (>= 1:1.1.4)
Suggests: gfortran-7-multilib, gfortran-7-doc, libcoarrays-dev
Filename: pool/universe/g/gcc-7/gfortran-7_7.5.0-6ubuntu2_amd64.deb
Size: 9012188
MD5sum: ca0132c9036c922104058fd1b1f08b85
SHA1: 7e735438036fb6a9e5e4c2286784992d26d5cd67
SHA256: bed11bf81f063ec08ae7033fcba3f99dac5c0fb885f0b9f775520d5a1f9d0f67
Homepage: http://gcc.gnu.org/
Description: GNU Fortran compiler
Description-md5: 5dd93c5d21d0717205bc5a3b538b0ca2