How to Install and Uninstall clang-format Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 09,2024

1. Install "clang-format" package

Please follow the steps below to install clang-format on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install clang-format

2. Uninstall "clang-format" package

Please follow the guidance below to uninstall clang-format on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the clang-format package on Ubuntu 20.10 (Groovy Gorilla)

Package: clang-format
Architecture: amd64
Version: 1:11.0-51~exp1
Priority: optional
Section: universe/devel
Source: llvm-defaults (0.51~exp1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 29
Depends: clang-format-11 (>= 11~)
Breaks: clang (<< 1:3.6-28)
Replaces: clang (<< 1:3.6-28)
Filename: pool/universe/l/llvm-defaults/clang-format_11.0-51~exp1_amd64.deb
Size: 3584
MD5sum: 55632f6511f2cb20da6f821b7244ed13
SHA1: f5795ee19d31b19ad1ac5db565fd6d91d72e385a
SHA256: 5f6b4d5ac031af60ff68113a3f5095a9fc05460bc5c26d7f636637583af87d95
SHA512: 5696705d93ec5177dcc787bac2d0f87eee83f556c6d7eaf8cc0ac4708287e4e037bdff584c521af5af49645649d833e94ed2305be140b4eefe8faa9f81d0bd5a
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 is a dependency package providing the clang format tool.
Description-md5: b50362fb3abbe4fca65017f3e1c209b3