How To Install clang-tools-extra on CentOS 8

Hostnbit
clang-tools-extra is Extra tools for clang Extra tools for clang

Introduction

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

What is clang-tools-extra

A set of extra tools built using Clang’s tooling API. clang-tools-extra 11.0.0 1.module_el8.4.0+587+5187cac0 x86_64 14 M clang-11.0.0-1.module_el8.4.0+587+5187cac0.src.rpm appstream Extra tools for clang http NCSA A set of extra tools built using Clang’s tooling API.

We can use yum or dnf to install clang-tools-extra on CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 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 CentOS 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/00
/usr/lib/.build-id/00/ecba8ac7587497636439291d68b50a813d9a2f
/usr/lib/.build-id/01
/usr/lib/.build-id/01/16cecb80e01457c5f5d46172bc9d89a92c75d2
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/370f8b1bf00d893531269ab3be8458f944d5a5
/usr/lib/.build-id/25
/usr/lib/.build-id/25/baef6fbc8d7693f9a1c8e6d73fe203ad631b24
/usr/lib/.build-id/26
/usr/lib/.build-id/26/08caea863223e18d5aa35f67e90883a723e287
/usr/lib/.build-id/37
/usr/lib/.build-id/37/3d272154abbcb16518f9f34c7f2f32945d6795
/usr/lib/.build-id/37/d0e1c8a3041d19a83cd3084c87f06aee371f1d
/usr/lib/.build-id/39
/usr/lib/.build-id/39/a97af835e6380849caebddecc3b28e9bb7131f
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/99f3572cde1c998aef2953c09dbebcbd504256
/usr/lib/.build-id/59
/usr/lib/.build-id/59/cd2f0932d56716d5e6a1869897768c528aa356
/usr/lib/.build-id/60
/usr/lib/.build-id/60/29dd9e654261d74e7ca59eacea3b4c03d65695
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/cb09188ac768d67edaf660fab162319494b707
/usr/lib/.build-id/81
/usr/lib/.build-id/81/a0d753bae0f8df37aff04d2a64faa71ccbc679
/usr/lib/.build-id/84
/usr/lib/.build-id/84/18e49148bb613111352da16746dda71aac1fc8
/usr/lib/.build-id/84/e53c9937af286d851a9cafcecab89ac0007c05
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/123b56088af343a14e022cb7fc7fcdf651375c
/usr/lib/.build-id/be
/usr/lib/.build-id/be/1eb44135a557c31e5f439a03cea7857bb37d2c
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/59687ef898158349a9b59505d692ac7f57c834
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/d84268ebdcdbdd75e96e8bce03b859c299ee34
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/b0c2bb20b303f7e96e9d9e7a27c49288d5b016
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/e33b431ff7ea8738c7e84daffff49037841ef1
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/049c98fe8b3a50632fa43a6786f1e626509b4b
/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/25
/usr/lib/.build-id/25/e3319f4a7ee00e52b6bb449e01796907e3a0b5
/usr/lib/.build-id/26
/usr/lib/.build-id/26/39d73b75cd74ed4c0d76d103ca6fc05d6a9ab4
/usr/lib/.build-id/33
/usr/lib/.build-id/33/edd25b7cd41355e15f48615ab18d5dddf9a3b5
/usr/lib/.build-id/46
/usr/lib/.build-id/46/9ba0697d21be1f9d662e92ebc90db23367630f
/usr/lib/.build-id/49
/usr/lib/.build-id/49/a6ebb2c170272542526a63b420a0dea93de65e
/usr/lib/.build-id/49/ab9acc749e14e94e5427f7d0cb84e8a16d276c
/usr/lib/.build-id/67
/usr/lib/.build-id/67/22770d545a722cc72d855f2ab4e564c08b0c12
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/497200769774d0ae80dc48857b9391666d977c
/usr/lib/.build-id/78
/usr/lib/.build-id/78/864d7357ceae75816420d2077d34f4bc3c9aae
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/368b2fcb21d1b85593158c8b1c9ab23d989912
/usr/lib/.build-id/83
/usr/lib/.build-id/83/145df15a7b47b80a2acbba3e40ab9e271afc7b
/usr/lib/.build-id/85
/usr/lib/.build-id/85/b5335107c9b8ed1f79a21f302b444f3e06050c
/usr/lib/.build-id/95
/usr/lib/.build-id/95/e96571856bc11240e6d8506130b22dfeda33dc
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/d26d33eb44115e75dd614f59beb4576f7a7f4d
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/92e04f3a3a813f8903726f843d9c77a7a04f19
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/90e76b9e2e2ad381ab02ae427f25ef84f52e01
/usr/lib/.build-id/df
/usr/lib/.build-id/df/20860d50f2ab0ecbdf358dd2c6bf9532c54ae1
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/48647bb7226e620a33331669bd01ef237f8245
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/ab16292019ec2f981eee828a5855e74fde86f2
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/740e94e912e9dd1ce71c1e4d80c5a63183152c
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/387ae40fee5775431b760b0c73c8410b48bb12
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/6d7e4a29898070e95405566a9caa5e4dba3960
/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

AdvertisementsEzoicreport this ad

Summary

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

Hostnbit

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Menu Title
Scroll to Top