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

Last updated: November 25,2024

1. Install "gfortran" package

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

$ sudo apt update $ sudo apt install gfortran

2. Uninstall "gfortran" package

This is a short guide on how to uninstall gfortran on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: gfortran
Architecture: amd64
Version: 4:10.3.0-1ubuntu1
Priority: optional
Section: devel
Source: gcc-defaults (1.190ubuntu1)
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:10.3.0-1ubuntu1), gcc (= 4:10.3.0-1ubuntu1), gfortran-10 (>= 10.3.0-1~)
Suggests: gfortran-multilib, gfortran-doc
Filename: pool/main/g/gcc-defaults/gfortran_10.3.0-1ubuntu1_amd64.deb
Size: 1372
MD5sum: 96939f1ac12e2260348a9b9dcb737e08
SHA1: 0435f15023a2188a1339138011659e165fbb4cb9
SHA256: 64afb0b812c8a089ec549fa254dfa44d1f4eb511e260ca52c0a0decdf9c8a453
SHA512: 58f168fa8df3bd2746d98ab43e8e295e73305d81340431647649179f49cfa36dafa6157381b9e5a2188f47c86e1f726a6a6e9b03e0774cad8e24299f8ea2492d
Description-en: GNU Fortran 95 compiler
This is the GNU Fortran 95 compiler, which compiles Fortran 95 on platforms
supported by the gcc compiler. It uses the gcc backend to generate optimized
code.
.
This is a dependency package providing the default GNU Fortran 95 compiler.
Description-md5: 19814cb032299ba2188b0196ece62ba3