How to Install and Uninstall clang Package on Debian 11 (Bullseye)

Last updated: May 06,2024

1. Install "clang" package

This is a short guide on how to install clang on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install clang

2. Uninstall "clang" package

This guide covers the steps necessary to uninstall clang on Debian 11 (Bullseye):

$ sudo apt remove clang $ sudo apt autoclean && sudo apt autoremove

3. Information about the clang package on Debian 11 (Bullseye)

Package: clang
Source: llvm-defaults (0.51+nmu5)
Version: 1:11.0-51+nmu5
Installed-Size: 24
Maintainer: LLVM Packaging Team
Architecture: amd64
Replaces: clang (<< 3.2-1~exp2), clang-3.2, clang-3.3, clang-3.4 (<< 1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1)
Depends: clang-11 (>= 11~)
Breaks: clang-3.2, clang-3.3, clang-3.4 (<< 1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1)
Description: C, C++ and Objective-C compiler (LLVM based), clang binary
Description-md5: 2916bca3b5e11836b745c64f4b346b34
Tag: devel::compiler, devel::lang:c, devel::lang:c++, devel::lang:objc,
devel::library, implemented-in::c, implemented-in::c++,
interface::commandline, role::devel-lib, role::program,
scope::application, works-with::software:source
Section: devel
Priority: optional
Filename: pool/main/l/llvm-defaults/clang_11.0-51+nmu5_amd64.deb
Size: 8872
MD5sum: 2b193a4902ccffa954856ed31f82d169
SHA256: addbf0c17f996e278f243491db4830a227da106acee0afd87fac9d49e7f67a9f