How to Install and Uninstall clang Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: May 05,2024

1. Install "clang" package

Here is a brief guide to show you how to install clang on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install clang

2. Uninstall "clang" package

Please follow the guidance below to uninstall clang on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the clang package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: clang
Architecture: amd64
Version: 1:14.0-55~exp2
Priority: optional
Section: universe/devel
Source: llvm-defaults (0.55~exp2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 25
Depends: clang-14 (>= 14~)
Breaks: clang-3.2, clang-3.3, clang-3.4 (<< 1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1)
Replaces: clang (<< 3.2-1~exp2), clang-3.2, clang-3.3, clang-3.4 (<< 1:3.4.2-7~exp1), clang-3.5 (<< 1:3.5~+rc1-3~exp1)
Filename: pool/universe/l/llvm-defaults/clang_14.0-55~exp2_amd64.deb
Size: 3558
MD5sum: 9012efb7d550940265a49a8b3b986b1d
SHA1: a27e72f7f3e0d3ba8a84cf9e5612849ef11a46d9
SHA256: 4b4c7dee18823b5a1348d5496806810cb8fd40289377003adee6511c44339466
SHA512: 0d7b949d9bf5ebf7c3b3eb5eb5a542e1e88fc65106297ee34ebce055e950f71f06c3470e494fbf3b5c2128771b3c1cc33dead514bde19bb9aaf35b51162bcb13
Description: C, C++ and Objective-C compiler (LLVM based), clang binary
Description-md5: 2916bca3b5e11836b745c64f4b346b34