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

Last updated: December 03,2024

1. Install "clang-format-9" package

Please follow the guidance below to install clang-format-9 on Ubuntu 21.10 (Impish Indri)

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

2. Uninstall "clang-format-9" package

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

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

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

Package: clang-format-9
Architecture: amd64
Version: 1:9.0.1-16.1ubuntu1
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: 178
Depends: libc6 (>= 2.14), libclang-cpp9, libgcc-s1 (>= 3.0), libllvm9 (= 1:9.0.1-16.1ubuntu1), libstdc++6 (>= 5.2), python3
Filename: pool/universe/l/llvm-toolchain-9/clang-format-9_9.0.1-16.1ubuntu1_amd64.deb
Size: 41278
MD5sum: 9838becadc52463bd0573131e4634ac9
SHA1: dbf150d6a09068b1806e503b37bae45bb8e7f0ba
SHA256: 43576580622efbf9284dbffe7b1dd4d576f333a96ed2f2d2e712928548184623
SHA512: 7cbc8d1f451458ac557526e77f046ec81b5053223374a2d60b1ee39c128ba9759a79a498721fd6ad6b830310fbd3ea1dabb046d9287cdd5afbb824655b770760
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