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

Last updated: May 18,2024

1. Install "clang-format-4.0" package

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

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

2. Uninstall "clang-format-4.0" package

Here is a brief guide to show you how to uninstall clang-format-4.0 on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: clang-format-4.0
Architecture: amd64
Version: 1:4.0-1ubuntu1~16.04.2
Priority: optional
Section: universe/devel
Source: llvm-toolchain-4.0
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1581
Depends: libc6 (>= 2.14), libllvm4.0, libstdc++6 (>= 5.2), python
Breaks: clang-format-3.3
Replaces: clang-format-3.3
Filename: pool/universe/l/llvm-toolchain-4.0/clang-format-4.0_4.0-1ubuntu1~16.04.2_amd64.deb
Size: 506744
MD5sum: 8e86e4a945540510244a2b6fd1a290ae
SHA1: 00903475f7bf0722277a35ec523cd9e5bf8cfa22
SHA256: 653a41b23ea172980100c4dcfac871e63d6d357daf28163afaa93e663118468a
SHA512: 0e147a72751804455d44d201b6bc92613ec7666303eb6dc41331b1515aa6b05edd0ed8e4f192693f5069f865c5db87e03703c4b27713b0d0dde7a751e388848d
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