How to Install and Uninstall clang-format Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: May 12,2024

1. Install "clang-format" package

Please follow the steps below to install clang-format on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install clang-format

2. Uninstall "clang-format" package

Please follow the step by step instructions below to uninstall clang-format on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the clang-format package on Ubuntu 24.04 LTS (Noble Numbat)

Package: clang-format
Architecture: amd64
Version: 1:17.0-58~exp1
Multi-Arch: same
Priority: optional
Section: universe/devel
Source: llvm-defaults (0.58~exp1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29
Depends: clang-format-17 (>= 17~)
Breaks: clang (<< 1:3.6-28)
Replaces: clang (<< 1:3.6-28)
Filename: pool/universe/l/llvm-defaults/clang-format_17.0-58~exp1_amd64.deb
Size: 5800
MD5sum: fd3270656941bd66d374cee69a23d5b6
SHA1: 2b6442906de8e85bf1ec2d32af660b737a6d7dc6
SHA256: b47c3039940e4cd61b96f5ba5d7caccdd762f3cf568e250258ab7ee85fcf3a01
SHA512: c32a99ed23b3f31bb036ae992dc9b84fa25630c95c593b54b50bb81f9f0bcd73a9a6440196fcb620bd9ad017a1738d616052e392dfa96216ec379598db83fe13
Description: Tool to format C/C++/Obj-C code
Description-md5: b50362fb3abbe4fca65017f3e1c209b3