How to Install and Uninstall gfortran Package on Debian 12 (Bookworm)

Last updated: November 05,2024

1. Install "gfortran" package

In this section, we are going to explain the necessary steps to install gfortran on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install gfortran

2. Uninstall "gfortran" package

Please follow the steps below to uninstall gfortran on Debian 12 (Bookworm):

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

3. Information about the gfortran package on Debian 12 (Bookworm)

Package: gfortran
Source: gcc-defaults (1.203)
Version: 4:12.2.0-3
Installed-Size: 16
Maintainer: Debian GCC Maintainers
Architecture: amd64
Provides: fortran-compiler, gfortran-mod-15
Depends: cpp (= 4:12.2.0-3), gcc (= 4:12.2.0-3), gfortran-12 (>= 12.2.0-1~)
Suggests: gfortran-multilib, gfortran-doc
Description: GNU Fortran 95 compiler
Description-md5: 19814cb032299ba2188b0196ece62ba3
Tag: devel::compiler, devel::lang:fortran, role::dummy, role::program,
suite::gnu
Section: devel
Priority: optional
Filename: pool/main/g/gcc-defaults/gfortran_12.2.0-3_amd64.deb
Size: 1428
MD5sum: f3597f92dcb5c7f79d6e6c61f554d623
SHA256: 34e6f873a0bbbf917a18f4a9800166c2ed40216e4688e94f7c3dd1886a230881