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

Last updated: April 24,2024

1. Install "clang-9" package

Please follow the instructions below to install clang-9 on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install clang-9

2. Uninstall "clang-9" package

This guide covers the steps necessary to uninstall clang-9 on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: clang-9
Architecture: amd64
Version: 1:9.0.1-16
Priority: optional
Section: universe/devel
Source: llvm-toolchain-9
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3682
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.14), libclang-cpp9 (= 1:9.0.1-16), libgcc-s1 (>= 3.0), libllvm9 (>= 1:9~svn298832-1~), libstdc++6 (>= 9), libstdc++-10-dev, libgcc-10-dev, libobjc-10-dev, libclang-common-9-dev (= 1:9.0.1-16), libc6-dev, binutils
Recommends: llvm-9-dev, python3, libomp-9-dev
Suggests: clang-9-doc
Filename: pool/universe/l/llvm-toolchain-9/clang-9_9.0.1-16_amd64.deb
Size: 1122700
MD5sum: ecaa8123b5419f145606e48dc7b32829
SHA1: 96be96af983538d3fe58daa5edf46ea8fd6aaa51
SHA256: 0242a7e972716c75e6359b4592189d65589db2bf2564072d4d9f5c2dd6ccb7f4
SHA512: a7da75fdde5772d281595ea1dd46e7f2c0ccb8abea830447079054c0ec5f442f7a54123e7dcc8987d045df2e2318a0c10e0639d839e3e9f71c50f46086136a0d
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 and 14 standards and also
provides most of the support of C++17.
Description-md5: 224e1c81284b37e6720b78f6cf56d36b