How To Install ctags on Fedora 36

In this tutorial we learn how to install ctags in Fedora 36. ctags is A C programming language indexing and/or cross-reference tool

Introduction

In this tutorial we learn how to install ctags on Fedora 36.

What is ctags

Ctags generates an index (or tag) file of C language objects found in C source and header files. The index makes it easy for text editors or other utilities to locate the indexed items. Ctags can also generate a cross reference file which lists information about the various objects found in a set of C language files in human readable form. Exuberant Ctags improves on ctags because it can find all types of C language tags, including macro definitions, enumerated values (values inside enum{…}), function and method definitions, enum/struct/union tags, external function prototypes, typedef names and variable declarations. Exuberant Ctags is far less likely to be fooled by code containing #if preprocessor conditional constructs than ctags. Exuberant ctags supports output of Emacs style TAGS files and can be used to print out a list of selected objects found in source files. Install ctags if you are going to use your system for C programming.

We can use yum or dnf to install ctags on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ctags.

Install ctags on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ctags using dnf by running the following command:

sudo dnf -y install ctags

Install ctags on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ctags using yum by running the following command:

sudo yum -y install ctags

How To Uninstall ctags on Fedora 36

To uninstall only the ctags package we can use the following command:

sudo dnf remove ctags

ctags Package Contents on Fedora 36

/usr/bin/ctags
/usr/bin/optscript
/usr/bin/readtags
/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/7776a0c6cf0f5ec516b3d0d5aa048b6b80c378
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/c12c7f844f7c9d4f15634c9c1b457a5c91775d
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/de8a99e4b516bcc10d73c0160f2b16f6b9ac16
/usr/share/doc/ctags
/usr/share/doc/ctags/README.md
/usr/share/licenses/ctags
/usr/share/licenses/ctags/COPYING
/usr/share/man/man1/ctags.1.gz
/usr/share/man/man1/readtags.1.gz
/usr/share/man/man5/tags.5.gz
/usr/share/man/man7/ctags-client-tools.7.gz
/usr/share/man/man7/ctags-faq.7.gz
/usr/share/man/man7/ctags-incompatibilities.7.gz
/usr/share/man/man7/ctags-lang-gdscript.7.gz
/usr/share/man/man7/ctags-lang-iPythonCell.7.gz
/usr/share/man/man7/ctags-lang-inko.7.gz
/usr/share/man/man7/ctags-lang-julia.7.gz
/usr/share/man/man7/ctags-lang-python.7.gz
/usr/share/man/man7/ctags-lang-r.7.gz
/usr/share/man/man7/ctags-lang-sql.7.gz
/usr/share/man/man7/ctags-lang-tcl.7.gz
/usr/share/man/man7/ctags-lang-verilog.7.gz
/usr/share/man/man7/ctags-optlib.7.gz

References

Summary

In this tutorial we learn how to install ctags on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).