How to Install and Uninstall clang-tidy-12 Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: April 26,2024

1. Install "clang-tidy-12" package

This is a short guide on how to install clang-tidy-12 on Ubuntu 21.04 (Hirsute Hippo)

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

2. Uninstall "clang-tidy-12" package

Please follow the step by step instructions below to uninstall clang-tidy-12 on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the clang-tidy-12 package on Ubuntu 21.04 (Hirsute Hippo)

Package: clang-tidy-12
Architecture: amd64
Version: 1:12.0.0-1ubuntu1
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: 5880
Depends: libc6 (>= 2.14), libclang-cpp12 (>= 1:12.0.0), libgcc-s1 (>= 3.0), libllvm12 (= 1:12.0.0-1ubuntu1), libstdc++6 (>= 5.2), python3, libclang-common-12-dev, clang-tools-12, python3-yaml
Filename: pool/universe/l/llvm-toolchain-12/clang-tidy-12_12.0.0-1ubuntu1_amd64.deb
Size: 1097500
MD5sum: c9b1d3eb5215a0efcf6f8dc6bf7dbd26
SHA1: 4c129dfc5b3555c7c83c91f95fc8d0c018495d1b
SHA256: dd05a9856b3747c685c4593b1f576f17e9b328e67efed35b097328620c454086
SHA512: 3ffb2ef0956fd2f77dabf1febe60d4c18631067f3afa76332b26cc9219689ad62e63f945a43adffde24dd7a7d3f1d2d8f9f5d0e4af69d668e39e6cb7b1bde88b
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