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

Last updated: April 25,2024

1. Install "clang-format-12" package

Please follow the step by step instructions below to install clang-format-12 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install clang-format-12

2. Uninstall "clang-format-12" package

Here is a brief guide to show you how to uninstall clang-format-12 on Ubuntu 21.10 (Impish Indri):

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

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

Package: clang-format-12
Architecture: amd64
Version: 1:12.0.1-8build1
Priority: optional
Section: universe/devel
Source: llvm-toolchain-12
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 206
Depends: libc6 (>= 2.34), libclang-cpp12 (>= 1:12.0.1), libgcc-s1 (>= 3.0), libllvm12 (= 1:12.0.1-8build1), libstdc++6 (>= 5.2), python3
Filename: pool/universe/l/llvm-toolchain-12/clang-format-12_12.0.1-8build1_amd64.deb
Size: 47156
MD5sum: 02bb9c7bf321da011dfb7ae6babacacd
SHA1: 2b49cf55668e30ed59e74a41e1d8deed991be96b
SHA256: e3f8314e3ca17038f62a3994c8171040f86fc332c96f5ea683283df4ebda36ae
SHA512: 44fc091c5bb63bf8482b028c2af4ebdb5cc3d5260d5f1425151fc92cb797376e5588f5fd3ce94dd4a0ba384450847d018fab893842a12de087fef2779f71ecf2
Homepage: https://www.llvm.org/
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 package also provides vim and emacs plugins.
Description-md5: 5fdb7838fa336de9de2703cb644c12e4