How to Install and Uninstall gfortran-7 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: October 05,2024

1. Install "gfortran-7" package

This is a short guide on how to install gfortran-7 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install gfortran-7

2. Uninstall "gfortran-7" package

Learn how to uninstall gfortran-7 on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the gfortran-7 package on Ubuntu 21.04 (Hirsute Hippo)

Package: gfortran-7
Architecture: amd64
Version: 7.5.0-6ubuntu4
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: 25015
Provides: fortran95-compiler, gfortran-mod-14
Depends: gcc-7-base (= 7.5.0-6ubuntu4), gcc-7 (= 7.5.0-6ubuntu4), libgfortran-7-dev (= 7.5.0-6ubuntu4), libc6-dev (>= 2.13-0ubuntu6), libc6 (>= 2.14), libgmp10 (>= 2:5.0.1~), libisl23 (>= 0.15), libmpc3 (>= 1.1.0), 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-6ubuntu4_amd64.deb
Size: 9043668
MD5sum: 80fb98af88b287a8041a11fcbc37d7f0
SHA1: fdeb6d48913c3ec6d8ef3e3e7b0ba2d805f9e60b
SHA256: bba7d4f4a1e7c0b358593b667ceadda68b720f14c48f68dbd07598ffe7834b78
SHA512: 8881fbcd7b5e202ab12df089cbc29a08e44b6b6e1cc048fb2e777b14200c3b542dc53c557e1888d95d1ee8752b4918b3469be98754b88fe0c497be7142d7eb85
Homepage: http://gcc.gnu.org/
Description-en: GNU Fortran compiler
This is the GNU Fortran compiler, which compiles
Fortran on platforms supported by the gcc compiler. It uses the
gcc backend to generate optimized code.
Description-md5: 5dd93c5d21d0717205bc5a3b538b0ca2