How To Install clang-tools-extra on Rocky Linux 8

In this tutorial we learn how to install clang-tools-extra on Rocky Linux 8. clang-tools-extra is Extra tools for clang

Introduction

In this tutorial we learn how to install clang-tools-extra on Rocky Linux 8.

What is clang-tools-extra

A set of extra tools built using Clang’s tooling API.

We can use yum or dnf to install clang-tools-extra on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install clang-tools-extra.

Install clang-tools-extra on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install clang-tools-extra using dnf by running the following command:

sudo dnf -y install clang-tools-extra

Install clang-tools-extra on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install clang-tools-extra using yum by running the following command:

sudo yum -y install clang-tools-extra

How To Uninstall clang-tools-extra on Rocky Linux 8

To uninstall only the clang-tools-extra package we can use the following command:

sudo dnf remove clang-tools-extra

clang-tools-extra Package Contents on Rocky Linux 8

/usr/bin/c-index-test
/usr/bin/clang-apply-replacements
/usr/bin/clang-change-namespace
/usr/bin/clang-check
/usr/bin/clang-doc
/usr/bin/clang-extdef-mapping
/usr/bin/clang-format
/usr/bin/clang-include-fixer
/usr/bin/clang-move
/usr/bin/clang-offload-bundler
/usr/bin/clang-offload-wrapper
/usr/bin/clang-query
/usr/bin/clang-refactor
/usr/bin/clang-rename
/usr/bin/clang-reorder-fields
/usr/bin/clang-scan-deps
/usr/bin/clang-tidy
/usr/bin/clangd
/usr/bin/diagtool
/usr/bin/find-all-symbols
/usr/bin/hmaptool
/usr/bin/modularize
/usr/bin/pp-trace
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/90c9abc330b8222cf85faeedb8bf20ff13061b
/usr/lib/.build-id/11
/usr/lib/.build-id/11/d31cd857f4d591ded7bcb688a57b54d766ea5e
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/239db4284042ff5145da3cbe25c7e0fdbf12e8
/usr/lib/.build-id/26
/usr/lib/.build-id/26/165604f5333739bec571210f9fa76cf1166f39
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/c4c1c563c7c4f345c88484e9de23ccb0f81421
/usr/lib/.build-id/31
/usr/lib/.build-id/31/ec25fd70fee64450f135a1b9bdd999cf1a0464
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/c554db9ddf12e05fe301d62a8e3c1fc4ee32c8
/usr/lib/.build-id/46
/usr/lib/.build-id/46/832504ba9a752bf96921a36735bc3e36ebccd1
/usr/lib/.build-id/48
/usr/lib/.build-id/48/0fe2014c1b35059ef656e0bdf14c1d69f77ab4
/usr/lib/.build-id/57
/usr/lib/.build-id/57/ce4b5408d690de4824190871c8cf5827a6debf
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/6ea966e7010208ce092e2d87402a354d6dda37
/usr/lib/.build-id/7b/c59fb09cd76f1d6ba8c48df786eabe5ac9eeef
/usr/lib/.build-id/84
/usr/lib/.build-id/84/0798a72df5f64908e5bcdcd675b110a87e6011
/usr/lib/.build-id/90
/usr/lib/.build-id/90/00f731900593f0829d9fc8adcc108b71556cd6
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/9a71cab341a8a0d1ce694a91c5f49dd0e88cac
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/93603816b49da4ba24706cc1eadc9d6ab8237a
/usr/lib/.build-id/be
/usr/lib/.build-id/be/0b7555e6e59c4391f044bbc7737c960aacac1e
/usr/lib/.build-id/be/2796bc51a008f42809c7597d069187af149fba
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/e7a6a148cbba0223d5588102f38cac96a3bc73
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/0b2d16ccf1494fd1e47bc5d568f85e39b00e66
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/d60d54b779bb57676bd8ca3dcebd6a23a32a29
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/d224d650717ac4a1fca187454456cab196bffd
/usr/share/clang/clang-format-diff.py
/usr/share/clang/clang-format.py
/usr/share/clang/clang-include-fixer.py
/usr/share/clang/clang-rename.py
/usr/share/clang/clang-tidy-diff.py
/usr/share/clang/run-clang-tidy.py
/usr/share/clang/run-find-all-symbols.py
/usr/share/emacs/site-lisp/site-start.d/clang-format.el
/usr/share/emacs/site-lisp/site-start.d/clang-include-fixer.el
/usr/share/emacs/site-lisp/site-start.d/clang-rename.el
/usr/share/man/man1/diagtool.1.gz
/usr/bin/c-index-test
/usr/bin/clang-apply-replacements
/usr/bin/clang-change-namespace
/usr/bin/clang-check
/usr/bin/clang-doc
/usr/bin/clang-extdef-mapping
/usr/bin/clang-format
/usr/bin/clang-include-fixer
/usr/bin/clang-move
/usr/bin/clang-offload-bundler
/usr/bin/clang-offload-wrapper
/usr/bin/clang-query
/usr/bin/clang-refactor
/usr/bin/clang-rename
/usr/bin/clang-reorder-fields
/usr/bin/clang-scan-deps
/usr/bin/clang-tidy
/usr/bin/clangd
/usr/bin/diagtool
/usr/bin/find-all-symbols
/usr/bin/hmaptool
/usr/bin/modularize
/usr/bin/pp-trace
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/975fcf470ed8bb2ec15f23f605b0e3d87495b1
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/86f04eddc86e5f326985cde8664784f54f49ea
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/2994de832b9b882aa71f4f8427b11b8545e662
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/229ee3958cb25ea9ba7fff297e8987836b13a3
/usr/lib/.build-id/49
/usr/lib/.build-id/49/e8f725d5255ddfd832d65b3c920bc96572eaef
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/e058d4c708607faf866f5163b28e31ef681bc6
/usr/lib/.build-id/63
/usr/lib/.build-id/63/25184083333414699c6b52e6f6bd59e98b0457
/usr/lib/.build-id/68
/usr/lib/.build-id/68/1d4721f57af08fad8b8899c900fd70e3cf9b12
/usr/lib/.build-id/69
/usr/lib/.build-id/69/d8c7b4257cd5f613216a258ccca6d6df3aabce
/usr/lib/.build-id/72
/usr/lib/.build-id/72/bdf8123dce560290ddaebab4cd64d3118eb65f
/usr/lib/.build-id/74
/usr/lib/.build-id/74/473b92f0e0e93b1112a3e3d2773b1bf3f63a62
/usr/lib/.build-id/87
/usr/lib/.build-id/87/31e2b9331dedf0396b6e66b4ce44f5f827227d
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/952565f5ab3ec6e4c00c6139410b376bdab094
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/e82ebbc5d052a01f6db9fa6c0ab65b72811fb9
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/ee8ba02a08c2fb37b34313203d73d11a1d8bf5
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/dbbe27bc7ef66eda98fa5e8cd871dc9ff944dc
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/31967da5a8e7642ec97446fc90c50a18fb7ef4
/usr/lib/.build-id/bb/f416ce86b400fdb42e20a2b6f3a09eba02b52d
/usr/lib/.build-id/be
/usr/lib/.build-id/be/c16199d89fa9fd7a4f02451ab5d16509bf9767
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/8ccf7c3bd788709970abede998782bd79f17e9
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/7c5bb834f0aab92e2ef6fe27cfa6097bccbd06
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/784829c4ace49a716bac7034b4f92dde09dc8d
/usr/share/clang/clang-format-diff.py
/usr/share/clang/clang-format.py
/usr/share/clang/clang-include-fixer.py
/usr/share/clang/clang-rename.py
/usr/share/clang/clang-tidy-diff.py
/usr/share/clang/run-clang-tidy.py
/usr/share/clang/run-find-all-symbols.py
/usr/share/emacs/site-lisp/site-start.d/clang-format.el
/usr/share/emacs/site-lisp/site-start.d/clang-include-fixer.el
/usr/share/emacs/site-lisp/site-start.d/clang-rename.el
/usr/share/man/man1/diagtool.1.gz

References

Summary

In this tutorial we learn how to install clang-tools-extra on Rocky Linux 8 using yum and dnf.