How to Install and Uninstall iwyu Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 20,2024

1. Install "iwyu" package

Learn how to install iwyu on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install iwyu

2. Uninstall "iwyu" package

This guide let you learn how to uninstall iwyu on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove iwyu $ sudo apt autoclean && sudo apt autoremove

3. Information about the iwyu package on Ubuntu 21.10 (Impish Indri)

Package: iwyu
Architecture: amd64
Version: 8.15-2
Priority: extra
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: LLVM Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 9424
Depends: libc6 (>= 2.14), libclang-cpp11 (>= 1:11.0.1), libllvm11 (>= 1:9~svn298832-1~), libstdc++6 (>= 5.2), clang | clang-4.0 | clang-5.0 | clang-6.0 | clang-7 | clang-8 | clang-9 | clang-10 | clang-11 | clang-12, python3
Filename: pool/universe/i/iwyu/iwyu_8.15-2_amd64.deb
Size: 911956
MD5sum: 0e21c41835bfc8a4ced605e668c7fd5a
SHA1: d3783c57d7d8922cd06535c0d35947dc747fa108
SHA256: 34d3333aa7bb76bb0e79c73c26eefc71a4760ee0c36685b19b85196646c13467
SHA512: 94e359c98eabb020ea34fe5b2985846bf6f42b747f080a439fa4ffac59d1ea8e383423c432b9c6608eac3d76c869bf3b2df444bc119bc91faafac87ab944bc0e
Homepage: https://include-what-you-use.org/
Description-en: Analyze #includes in C and C++ source files
"Include what you use" means this: for every symbol (type, function variable,
or macro) that you use in foo.cc, either foo.cc or foo.h should #include a .h
file that exports the declaration of that symbol. The include-what-you-use
tool is a program that can be built with the clang libraries in order to
analyze #includes of source files to find include-what-you-use violations,
and suggest fixes for them.
.
The main goal of include-what-you-use is to remove superfluous #includes.
It does this both by figuring out what #includes are not actually needed for
this file (for both .cc and .h files), and replacing #includes with
forward-declares when possible.
Description-md5: 9a2968593adb5f99f5bf60fc4f4f341a