How to Install and Uninstall gcc Package on Kali Linux

Last updated: December 23,2024

1. Install "gcc" package

In this section, we are going to explain the necessary steps to install gcc on Kali Linux

$ sudo apt update $ sudo apt install gcc

2. Uninstall "gcc" package

Please follow the instructions below to uninstall gcc on Kali Linux:

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

3. Information about the gcc package on Kali Linux

Package: gcc
Source: gcc-defaults (1.214)
Version: 4:13.2.0-7
Installed-Size: 36
Maintainer: Debian GCC Maintainers
Architecture: amd64
Provides: c-compiler
Depends: cpp (= 4:13.2.0-7), cpp-x86-64-linux-gnu (= 4:13.2.0-7), gcc-13 (>= 13.2.0-11~), gcc-x86-64-linux-gnu (= 4:13.2.0-7)
Recommends: libc6-dev | libc-dev
Suggests: gcc-multilib, make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb, gcc-doc
Conflicts: gcc-doc (<< 1:2.95.3)
Size: 5152
SHA256: b3d25f7836a0d6c5896fd343ccef4a9d5aa26e9651591ca86a0a77296a18536d
SHA1: 2595bae09c1dcea0e48cb1f0e90393ed22ffdfb6
MD5sum: 944f42fc2779fcff468b8c3b35284924
Description: GNU C compiler
This is the GNU C compiler, a fairly portable optimizing compiler for C.
.
This is a dependency package providing the default GNU C compiler.
Description-md5:
Build-Essential: yes
Tag: devel::compiler, devel::lang:c, devel::library, implemented-in::c,
interface::commandline, role::devel-lib, role::metapackage,
role::program, suite::gnu, works-with::software:source
Section: devel
Priority: optional
Filename: pool/main/g/gcc-defaults/gcc_13.2.0-7_amd64.deb