How to Install and Uninstall clang-format Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 12,2024

1. Install "clang-format" package

This is a short guide on how to install clang-format on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install clang-format

2. Uninstall "clang-format" package

Learn how to uninstall clang-format on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the clang-format package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: clang-format
Architecture: amd64
Version: 1:3.8-33ubuntu3.1
Priority: optional
Section: universe/devel
Source: llvm-defaults (0.33ubuntu3.1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 19
Depends: clang-format-3.8 (>= 3.8~)
Breaks: clang (<< 1:3.6-28)
Replaces: clang (<< 1:3.6-28)
Filename: pool/universe/l/llvm-defaults/clang-format_3.8-33ubuntu3.1_amd64.deb
Size: 2992
MD5sum: 57a18be0de6d2a0c7e4857e0bf539f45
SHA1: e066ba9d3948815f9c5bcfec8a7ca4a2b6cf04f1
SHA256: 01d865e7f13e5f9f9743a1bbad480c7554a6b43d1f041ec7bdaed7111c7522c3
SHA512: e3bec6e33c54c84d1c563e98ec7c8edd8b63bc06d9caf7b2571b161d98862d312db09a378f038b46a0e07d584d338cf6d7f042b57ccbe4a07c151b531dfe00ae
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

Package: clang-format
Priority: optional
Section: universe/devel
Installed-Size: 19
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Architecture: amd64
Source: llvm-defaults (0.33ubuntu3)
Version: 1:3.8-33ubuntu3
Replaces: clang (<< 1:3.6-28)
Depends: clang-format-3.8 (>= 3.8~)
Breaks: clang (<< 1:3.6-28)
Filename: pool/universe/l/llvm-defaults/clang-format_3.8-33ubuntu3_amd64.deb
Size: 2932
MD5sum: 6fe7689c168ed6848af1868cb1bb708a
SHA1: 37b86ff0265f48e844b8fb02b5e810637bcbdbfa
SHA256: 5be98f15762104b41619c6820207d05978a10ff6d56b2fb97303f653e7f41317
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
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu