How to Install and Uninstall gfortran Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 26,2024

1. Install "gfortran" package

Learn how to install gfortran on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install gfortran

2. Uninstall "gfortran" package

This guide covers the steps necessary to uninstall gfortran on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the gfortran package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: gfortran
Priority: optional
Section: devel
Installed-Size: 15
Maintainer: Ubuntu Developers
Original-Maintainer: Debian GCC Maintainers
Architecture: amd64
Source: gcc-defaults (1.150ubuntu1)
Version: 4:5.3.1-1ubuntu1
Provides: fortran-compiler, gfortran-mod-14
Depends: cpp (>= 4:5.3.1-1ubuntu1), gcc (>= 4:5.3.1-1ubuntu1), gfortran-5 (>= 5.3.1-3~)
Suggests: gfortran-multilib, gfortran-doc
Filename: pool/main/g/gcc-defaults/gfortran_5.3.1-1ubuntu1_amd64.deb
Size: 1288
MD5sum: 51d8682997bb76aa145ce8185cbb4486
SHA1: 9d242e66ad2fca6d5068a2334f881709aa3462b7
SHA256: f9be41427f74f8a974ff2e6f24388638079b08d583b3351061ed5193f54249e7
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
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y