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

Last updated: April 29,2024

1. Install "clang-format-9" package

This guide covers the steps necessary to install clang-format-9 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "clang-format-9" package

This is a short guide on how to uninstall clang-format-9 on Ubuntu 21.04 (Hirsute Hippo):

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

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

Package: clang-format-9
Architecture: amd64
Version: 1:9.0.1-16
Priority: optional
Section: universe/devel
Source: llvm-toolchain-9
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 177
Depends: libc6 (>= 2.14), libclang-cpp9, libgcc-s1 (>= 3.0), libllvm9 (= 1:9.0.1-16), libstdc++6 (>= 5.2), python3
Filename: pool/universe/l/llvm-toolchain-9/clang-format-9_9.0.1-16_amd64.deb
Size: 38512
MD5sum: 82854824722fbd62ef6d511665f02f29
SHA1: 0d587f7c09a0064457852000789ac4d2e6509f3c
SHA256: 98f37f4b5667e9f1dd02b40ec707c6a0a2c4b385a326833c0ebfdb9d0ea96227
SHA512: 649233731e4975ad76e722097c6a5f75725a204bd8df52158e90e27fe88f6b9c09592d5d3343fc0a878de5edb6df20f92dc5d9e88dab435ea6ed61f84b898006
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