How to Install and Uninstall clang-12 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 21,2024

1. Install "clang-12" package

Please follow the step by step instructions below to install clang-12 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install clang-12

2. Uninstall "clang-12" package

This tutorial shows how to uninstall clang-12 on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the clang-12 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: clang-12
Architecture: amd64
Version: 1:12.0.0-3ubuntu1~20.04.5
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: 338
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.14), libclang-cpp12 (>= 1:12.0.0), libgcc-s1 (>= 3.0), libllvm12 (>= 1:9~svn298832-1~), libstdc++6 (>= 5.2), libstdc++-9-dev, libgcc-9-dev, libobjc-9-dev, libclang-common-12-dev (= 1:12.0.0-3ubuntu1~20.04.5), llvm-12-linker-tools (= 1:12.0.0-3ubuntu1~20.04.5), libclang1-12 (= 1:12.0.0-3ubuntu1~20.04.5), libc6-dev, binutils
Recommends: llvm-12-dev, python3, libomp-12-dev
Suggests: clang-12-doc
Breaks: llvm-12-dev (<< 1:12.0.0~++rc5-1ubuntu1)
Replaces: llvm-12-dev (<< 1:12.0.0~++rc5-1ubuntu1)
Filename: pool/universe/l/llvm-toolchain-12/clang-12_12.0.0-3ubuntu1~20.04.5_amd64.deb
Size: 68680
MD5sum: 2b6fa4b7823326ddb94fd1684a80eae7
SHA1: 4abd3f0b6a491f2960dc8612f351b77a9428b390
SHA256: 8b4b6f551c646091f72d14a1b1df778d8d466c77c690e6cf9fa09d5a692316a3
SHA512: 5b08c0eadd8cefe77e7e90145f40998c17271e60aefd5f1842c0939fbf13b6af3aea80cf81ea1d3cd4b8876f3698334f3eaa754630ca0a47277076fe12441d29
Homepage: https://www.llvm.org/
Description: C, C++ and Objective-C compiler
Description-md5: c364160e44345420df0f2e97b3082b69