How to Install and Uninstall clang-tidy-12 Package on Ubuntu 21.10 (Impish Indri)

Last updated: April 25,2024

1. Install "clang-tidy-12" package

This guide covers the steps necessary to install clang-tidy-12 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install clang-tidy-12

2. Uninstall "clang-tidy-12" package

Please follow the guidance below to uninstall clang-tidy-12 on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove clang-tidy-12 $ sudo apt autoclean && sudo apt autoremove

3. Information about the clang-tidy-12 package on Ubuntu 21.10 (Impish Indri)

Package: clang-tidy-12
Architecture: amd64
Version: 1:12.0.1-8build1
Priority: optional
Section: universe/devel
Source: llvm-toolchain-12
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 5901
Depends: libc6 (>= 2.34), libclang-cpp12 (>= 1:12.0.1), libgcc-s1 (>= 3.0), libllvm12 (= 1:12.0.1-8build1), libstdc++6 (>= 11), python3, libclang-common-12-dev, clang-tools-12, python3-yaml
Filename: pool/universe/l/llvm-toolchain-12/clang-tidy-12_12.0.1-8build1_amd64.deb
Size: 1215178
MD5sum: 5000c02f675ecb9aea8439b63d1d0246
SHA1: 9290239a2fc3eca29cc99db4280ba5b55451e829
SHA256: 7301f518e030e7a49c1080a20f1a6f9566d1367d98e48db793c90f5d3ad91add
SHA512: 361a621d35454e977b42f8c9aa8640367cd5aac32c269b81fb869fe06075ad460c98cbddce93a7a4c3b2180471b504d6e34b8816ddffafae8d5dd95abb5321fb
Homepage: https://www.llvm.org/
Description-en: clang-based C++ linter tool
Provide an extensible framework for diagnosing and fixing typical programming
errors, like style violations, interface misuse, or bugs that can be deduced
via static analysis. clang-tidy is modular and provides a convenient interface
for writing new checks.
Description-md5: 239d974b460ce0b6a914aa94c05888ad