How to Install and Uninstall gcc-9 Package on Ubuntu 20.04 LTS (Focal Fossa)
Last updated: November 26,2024
1. Install "gcc-9" package
This tutorial shows how to install gcc-9 on Ubuntu 20.04 LTS (Focal Fossa)
$
sudo apt update
Copied
$
sudo apt install
gcc-9
Copied
2. Uninstall "gcc-9" package
Please follow the step by step instructions below to uninstall gcc-9 on Ubuntu 20.04 LTS (Focal Fossa):
$
sudo apt remove
gcc-9
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the gcc-9 package on Ubuntu 20.04 LTS (Focal Fossa)
Package: gcc-9
Architecture: amd64
Version: 9.4.0-1ubuntu1~20.04.2
Priority: optional
Build-Essential: yes
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29840
Provides: c-compiler
Depends: cpp-9 (= 9.4.0-1ubuntu1~20.04.2), gcc-9-base (= 9.4.0-1ubuntu1~20.04.2), libcc1-0 (>= 9.4.0-1ubuntu1~20.04.2), binutils (>= 2.34), libgcc-9-dev (= 9.4.0-1ubuntu1~20.04.2), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-9-multilib, gcc-9-doc (>= 8), gcc-9-locales (>= 8)
Replaces: cpp-9 (<< 7.1.1-8)
Filename: pool/main/g/gcc-9/gcc-9_9.4.0-1ubuntu1~20.04.2_amd64.deb
Size: 8275648
MD5sum: 0bdd61dd7384d93c7b75a5a1f65830c1
SHA1: 947c513038218626fcaf4838d546eb6c67752614
SHA256: 7b6f2e5aa58695b30a5e4d8e1c1e4f39bf5f7b28fc5db1609385e0630eac8c18
SHA512: d8b498df965b3a6a6f118ea2cc88c65e46b6ba2ace0cb1b6982750af1f51745c0a226cbab61fef063d3912df9e9aa62c36d20ff3f80db2f243a7cc1c4beed278
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Task: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Package: gcc-9
Architecture: amd64
Version: 9.3.0-10ubuntu2
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29783
Provides: c-compiler
Depends: cpp-9 (= 9.3.0-10ubuntu2), gcc-9-base (= 9.3.0-10ubuntu2), libcc1-0 (>= 9.3.0-10ubuntu2), binutils (>= 2.34), libgcc-9-dev (= 9.3.0-10ubuntu2), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-9-multilib, gcc-9-doc (>= 8), gcc-9-locales (>= 8)
Replaces: cpp-9 (<< 7.1.1-8)
Filename: pool/main/g/gcc-9/gcc-9_9.3.0-10ubuntu2_amd64.deb
Size: 8233992
MD5sum: f910c40fb004188a62caedc9fe5e9688
SHA1: ff54dd9e794015345a11bb001249c9db622373e2
SHA256: 22f0282dc1549a4f5715b94e9c71ed0e96c400d522ec15453e1a8000d45ea8d7
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Task: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes
Architecture: amd64
Version: 9.4.0-1ubuntu1~20.04.2
Priority: optional
Build-Essential: yes
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29840
Provides: c-compiler
Depends: cpp-9 (= 9.4.0-1ubuntu1~20.04.2), gcc-9-base (= 9.4.0-1ubuntu1~20.04.2), libcc1-0 (>= 9.4.0-1ubuntu1~20.04.2), binutils (>= 2.34), libgcc-9-dev (= 9.4.0-1ubuntu1~20.04.2), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-9-multilib, gcc-9-doc (>= 8), gcc-9-locales (>= 8)
Replaces: cpp-9 (<< 7.1.1-8)
Filename: pool/main/g/gcc-9/gcc-9_9.4.0-1ubuntu1~20.04.2_amd64.deb
Size: 8275648
MD5sum: 0bdd61dd7384d93c7b75a5a1f65830c1
SHA1: 947c513038218626fcaf4838d546eb6c67752614
SHA256: 7b6f2e5aa58695b30a5e4d8e1c1e4f39bf5f7b28fc5db1609385e0630eac8c18
SHA512: d8b498df965b3a6a6f118ea2cc88c65e46b6ba2ace0cb1b6982750af1f51745c0a226cbab61fef063d3912df9e9aa62c36d20ff3f80db2f243a7cc1c4beed278
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Task: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Package: gcc-9
Architecture: amd64
Version: 9.3.0-10ubuntu2
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Core developers
Original-Maintainer: Debian GCC Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29783
Provides: c-compiler
Depends: cpp-9 (= 9.3.0-10ubuntu2), gcc-9-base (= 9.3.0-10ubuntu2), libcc1-0 (>= 9.3.0-10ubuntu2), binutils (>= 2.34), libgcc-9-dev (= 9.3.0-10ubuntu2), libc6 (>= 2.15), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-0ubuntu6)
Suggests: gcc-9-multilib, gcc-9-doc (>= 8), gcc-9-locales (>= 8)
Replaces: cpp-9 (<< 7.1.1-8)
Filename: pool/main/g/gcc-9/gcc-9_9.3.0-10ubuntu2_amd64.deb
Size: 8233992
MD5sum: f910c40fb004188a62caedc9fe5e9688
SHA1: ff54dd9e794015345a11bb001249c9db622373e2
SHA256: 22f0282dc1549a4f5715b94e9c71ed0e96c400d522ec15453e1a8000d45ea8d7
Homepage: http://gcc.gnu.org/
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Task: ubuntustudio-video, ubuntu-mate-core, ubuntu-mate-desktop
Build-Essential: yes