How to Install and Uninstall gcc-7 Package on Debian 10 (Buster)

Last updated: November 05,2024

1. Install "gcc-7" package

This is a short guide on how to install gcc-7 on Debian 10 (Buster)

$ sudo apt update $ sudo apt install gcc-7

2. Uninstall "gcc-7" package

In this section, we are going to explain the necessary steps to uninstall gcc-7 on Debian 10 (Buster):

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

3. Information about the gcc-7 package on Debian 10 (Buster)

Package: gcc-7
Version: 7.4.0-6
Installed-Size: 27046
Maintainer: Debian GCC Maintainers
Architecture: amd64
Replaces: cpp-7 (<< 7.1.1-8), gccgo-7 (<< 7.4.0-6)
Provides: c-compiler
Depends: cpp-7 (= 7.4.0-6), gcc-7-base (= 7.4.0-6), libcc1-0 (>= 7.4.0-6), binutils (>= 2.31.1), libgcc-7-dev (= 7.4.0-6), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libgmp10 (>= 2:5.0.1~), libisl19 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4)
Recommends: libc6-dev (>= 2.13-5)
Suggests: gcc-7-multilib, gcc-7-doc (>= 7), gcc-7-locales (>= 7), libgcc1-dbg (>= 1:7.4.0-6), libgomp1-dbg (>= 7.4.0-6), libitm1-dbg (>= 7.4.0-6), libatomic1-dbg (>= 7.4.0-6), libasan4-dbg (>= 7.4.0-6), liblsan0-dbg (>= 7.4.0-6), libtsan0-dbg (>= 7.4.0-6), libubsan0-dbg (>= 7.4.0-6), libcilkrts5-dbg (>= 7.4.0-6), libmpx2-dbg (>= 7.4.0-6), libquadmath0-dbg (>= 7.4.0-6)
Description: GNU C compiler
Description-md5: 394374e688b1afb3af5f419895d29698
Homepage: http://gcc.gnu.org/
Section: devel
Priority: optional
Filename: pool/main/g/gcc-7/gcc-7_7.4.0-6_amd64.deb
Size: 9058424
MD5sum: c9d0ced0d26722eace68d25bd4ad8c33
SHA256: d8299c1954ac0e22a9d3010111ce945aac7bd903758937ddf1aee03dcddf7767