How to Install and Uninstall clang Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: April 24,2024

1. Install "clang" package

Here is a brief guide to show you how to install clang on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install clang

2. Uninstall "clang" package

Here is a brief guide to show you how to uninstall clang on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the clang package on Ubuntu 21.04 (Hirsute Hippo)

Package: clang
Architecture: amd64
Version: 1:12.0-52~exp1
Priority: optional
Section: universe/devel
Source: llvm-defaults (0.52~exp1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 24
Depends: clang-12 (>= 12~)
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)
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)
Filename: pool/universe/l/llvm-defaults/clang_12.0-52~exp1_amd64.deb
Size: 3432
MD5sum: 36ca05a5c62f4440ebecd15ffa7cf174
SHA1: bee38b7a6f1d6b1985ba50ee7e72a1a7f83d49ea
SHA256: 8826f70c6b415bac1a7b71aaea11ffea4b0e359ff78ee338eacd74ca7828e55a
SHA512: 5c6f0c0c383f4da1d7c0f8b976f798b74e31408d928368a7821973f132b080ca99064f6c1a385ec42220ad69b5244b9e6effc1c7abde668163c14849b0231328
Description-en: C, C++ and Objective-C compiler (LLVM based), clang binary
Clang project is a C, C++, Objective C and Objective C++ front-end
for the LLVM compiler. Its goal is to offer a replacement to the GNU Compiler
Collection (GCC).
.
Clang implements all of the ISO C++ 1998, 11 and 14 standards and also
provides most of the support of C++17.
.
This is a dependency package providing the default clang compiler.
Description-md5: 2916bca3b5e11836b745c64f4b346b34