How to Install and Uninstall clang-12 Package on Ubuntu 21.10 (Impish Indri)

Last updated: April 25,2024

1. Install "clang-12" package

Please follow the step by step instructions below to install clang-12 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install clang-12

2. Uninstall "clang-12" package

Here is a brief guide to show you how to uninstall clang-12 on Ubuntu 21.10 (Impish Indri):

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

3. Information about the clang-12 package on Ubuntu 21.10 (Impish Indri)

Package: clang-12
Architecture: amd64
Version: 1:12.0.1-8build1
Priority: optional
Section: universe/devel
Source: llvm-toolchain-12
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 342
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.34), libclang-cpp12 (>= 1:12.0.1), libgcc-s1 (>= 3.0), libllvm12, libstdc++6 (>= 11), libstdc++-11-dev, libgcc-11-dev, libobjc-11-dev, libclang-common-12-dev (= 1:12.0.1-8build1), llvm-12-linker-tools (= 1:12.0.1-8build1), libclang1-12 (= 1:12.0.1-8build1), libc6-dev, binutils
Recommends: llvm-12-dev, python3, libomp-12-dev
Suggests: clang-12-doc
Breaks: llvm-12-dev (<< 1:12.0.0-2)
Replaces: llvm-12-dev (<< 1:12.0.0-2)
Filename: pool/universe/l/llvm-toolchain-12/clang-12_12.0.1-8build1_amd64.deb
Size: 76998
MD5sum: f179bd0878eae14c19440cee71658145
SHA1: af24f81e793ac67c42e83c3dcf1a1b23d29d7729
SHA256: c67a1c0a89479b6394ebe217b9fa20817354655cf755ba0fc51d604682d9465c
SHA512: 25cd3a0b5fb6a3d562d8d3b3ee5b9845b0b74576138f68c9cb94f7823f3445527078a257ff911d18072d5470fca0a830f89701bc5691e0d4f1d469e916463e46
Homepage: https://www.llvm.org/
Description-en: C, C++ and Objective-C compiler
Clang project is a C, C++, Objective C and Objective C++ front-end
based on 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, 14 and 17 standards and also
provides most of the support of C++20.
Description-md5: c364160e44345420df0f2e97b3082b69