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

Last updated: May 18,2024

1. Install "clang-format-5.0" package

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

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

2. Uninstall "clang-format-5.0" package

This tutorial shows how to uninstall clang-format-5.0 on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: clang-format-5.0
Architecture: amd64
Version: 1:5.0-3~16.04.1
Priority: optional
Section: universe/devel
Source: llvm-toolchain-5.0
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1680
Depends: libc6 (>= 2.14), libllvm5.0 (= 1:5.0-3~16.04.1), libstdc++6 (>= 5.2), python
Breaks: clang-format-3.3
Replaces: clang-format-3.3
Filename: pool/universe/l/llvm-toolchain-5.0/clang-format-5.0_5.0-3~16.04.1_amd64.deb
Size: 537518
MD5sum: 08be86b43212deb1db12007c7e406e5a
SHA1: 8cb32945a2b11f47305655559fdcad0ca3a0dcab
SHA256: 454b3b78000bc2ea921c5c123f0c41742f6ed2418cd75c21327f6dfce13d8c02
SHA512: ad14d62456326589dc83048ecc42261069191d2980550b98f30ca8b486b691bb43ee3807c8640eb7c838ffb3cc6ba05d38e85ec973466394274029317802afca
Homepage: http://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