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

Last updated: November 23,2024

1. Install "clang-9" package

Please follow the guidelines below to install clang-9 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install clang-9

2. Uninstall "clang-9" package

This is a short guide on how to uninstall clang-9 on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: clang-9
Architecture: amd64
Version: 1:9.0.1-12
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: 3670
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.14), libclang-cpp9 (= 1:9.0.1-12), libgcc-s1 (>= 3.0), libllvm9 (>= 1:9~svn298832-1~), libstdc++6 (>= 9), libstdc++-9-dev, libgcc-9-dev, libobjc-9-dev, libclang-common-9-dev (= 1:9.0.1-12), 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-12_amd64.deb
Size: 1122476
MD5sum: 374564cc8b6a50e85c1383b7bf173e7f
SHA1: 58c6d80eb12a97d7323467ec78889aa08ce0038d
SHA256: 560a57b9c70d887dcb35b040f84e65e65b9e1ef6a270b9c4d98d347c7356c880
Homepage: https://www.llvm.org/
Description: C, C++ and Objective-C compiler
Description-md5: 224e1c81284b37e6720b78f6cf56d36b