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

Last updated: March 29,2024

1. Install "clang-format-11" package

Please follow the step by step instructions below to install clang-format-11 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "clang-format-11" package

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

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

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

Package: clang-format-11
Architecture: amd64
Version: 1:11.0.1-2ubuntu4
Priority: optional
Section: universe/devel
Source: llvm-toolchain-11
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 199
Depends: libc6 (>= 2.14), libclang-cpp11 (>= 1:11.0.1), libgcc-s1 (>= 3.0), libllvm11 (= 1:11.0.1-2ubuntu4), libstdc++6 (>= 5.2), python3
Filename: pool/universe/l/llvm-toolchain-11/clang-format-11_11.0.1-2ubuntu4_amd64.deb
Size: 41712
MD5sum: fe064baa01a7f15af2831d470e0f6621
SHA1: 7859f7881380def097991b6404825a23425a39bf
SHA256: ec90d540441335a755f4be5a9e366fae997012d3da642460468c365c18db805b
SHA512: 350de3aa6de23148377d782df19ee8d47c7ab44b4bb72749e11f614be52faf817c5d0b40080ebecc7e385d36c5af29c6501697846f47c7acc253c062d15f4949
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