How to Install and Uninstall clang-format Package on Ubuntu 21.10 (Impish Indri)

Last updated: April 27,2024

1. Install "clang-format" package

This is a short guide on how to install clang-format on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install clang-format

2. Uninstall "clang-format" package

Please follow the instructions below to uninstall clang-format on Ubuntu 21.10 (Impish Indri):

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

3. Information about the clang-format package on Ubuntu 21.10 (Impish Indri)

Package: clang-format
Architecture: amd64
Version: 1:13.0-53~exp1
Priority: optional
Section: universe/devel
Source: llvm-defaults (0.53~exp1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 30
Depends: clang-format-13 (>= 13~)
Breaks: clang (<< 1:3.6-28)
Replaces: clang (<< 1:3.6-28)
Filename: pool/universe/l/llvm-defaults/clang-format_13.0-53~exp1_amd64.deb
Size: 3078
MD5sum: c782cfc1f5e9a98c8248596e86843c94
SHA1: 067ce0890099681af03c08fd816f02052597dd2d
SHA256: d5e11f4105fdf98066f81d50004aba59601729efc74d3f2f6c34736f85224c6a
SHA512: d1bfcd93e4daca4ad481f2395820ae6e144c575754a0348c4044c75b7d2285f0257f047bf2b226824b95e0f9169f22136a0634f9332db5e5704f23e789fc0cf6
Description-en: Tool to format C/C++/Obj-C code
Clang-format is both a library and a stand-alone tool with the goal of
automatically reformatting C++ sources files according to configurable
style guides. To do so, clang-format uses Clang's Lexer to transform an
input file into a token stream and then changes all the whitespace around
those tokens. The goal is for clang-format to both serve both as a user
tool (ideally with powerful IDE integrations) and part of other
refactoring tools, e.g. to do a reformatting of all the lines changed
during a renaming.
.
This is a dependency package providing the clang format tool.
Description-md5: b50362fb3abbe4fca65017f3e1c209b3