How To Install ctags on CentOS 7
Introduction
In this tutorial we learn how to install ctags
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ctags.
Install ctags on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install ctags
using yum
by running the following command:
Install ctags on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install ctags
using dnf
by running the following command:
How To Uninstall ctags on CentOS 7
To uninstall only the ctags
package we can use the following command:
References
Summary
In this tutorial we learn how to install ctags
on CentOS 7 using yum
and dnf
.