How to Install and Uninstall clang-9 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 06,2024

1. Install "clang-9" package

Please follow the step by step instructions below to install clang-9 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install clang-9

2. Uninstall "clang-9" package

Please follow the step by step instructions below to uninstall clang-9 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the clang-9 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: clang-9
Architecture: amd64
Version: 1:9-2~ubuntu18.04.2
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: 3639
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.14), libclang-cpp9, libgcc1 (>= 1:3.0), libllvm9 (>= 1:9~svn298832-1~), libstdc++6 (>= 5.2), libstdc++-7-dev, libgcc-7-dev, libobjc-7-dev, libclang-common-9-dev (= 1:9-2~ubuntu18.04.2), libclang1-9 (= 1:9-2~ubuntu18.04.2), 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-2~ubuntu18.04.2_amd64.deb
Size: 1109404
MD5sum: 735ef7264561f47bdbcf09580b881da4
SHA1: 99fc7994977e8a392795a1adf22fb28f43286d8f
SHA256: b7216a67974c536c809b8c665219a167e8891c701ea3a3a33444ca7d4b353b31
SHA512: 9066f5dbb50e3d2aeb68b3fd6e2cf3b71ed2e5d7e88d022467976f5dc9c2df3ba2e63245ea0a22a5f930d0abca95ddecee359d1116616c18e2dc66295217b044
Homepage: https://www.llvm.org/
Description: C, C++ and Objective-C compiler
Description-md5: 224e1c81284b37e6720b78f6cf56d36b