How to Install and Uninstall clang-format-12 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: March 29,2024

1. Install "clang-format-12" package

Please follow the guidance below to install clang-format-12 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "clang-format-12" package

Please follow the guidelines below to uninstall clang-format-12 on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the clang-format-12 package on Ubuntu 21.04 (Hirsute Hippo)

Package: clang-format-12
Architecture: amd64
Version: 1:12.0.0-1ubuntu1
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: 205
Depends: libc6 (>= 2.14), libclang-cpp12 (>= 1:12.0.0), libgcc-s1 (>= 3.0), libllvm12 (= 1:12.0.0-1ubuntu1), libstdc++6 (>= 5.2), python3
Filename: pool/universe/l/llvm-toolchain-12/clang-format-12_12.0.0-1ubuntu1_amd64.deb
Size: 43872
MD5sum: 78f270216cdc4ede3ab089dd17d1b7e9
SHA1: 198d009b1d805d7528040bb0e41b7ab5ce36fbab
SHA256: 9f63cb4f74d6e144f7d5abeeaaba99fc417088c0c24d1b9698e01521fa69745e
SHA512: 748f9dfb1f0b784a992f13867410a27611c9a58719627cd090dc75d102384e204051f6a9ab5339a1b167b6eb0e66756e851d529895f56b6b3481a18c42ae066f
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