Home » Source Code Management ( SCM ) » How to install universal-ctags on Ubuntu ?

How to install universal-ctags on Ubuntu ?

Universal Ctags generates an index (or tag) file of language objects found in source files for many popular programming languages. This index makes it easy for text editors and other tools to locate the indexed items. Universal Ctags improves on traditional ctags because of its multilanguage support, its ability for the user to define new languages searched by regular expressions, and its ability to generate emacs-style TAGS files.

We can install universal ctags on Ubuntu as,

$ sudo apt-get remove exuberant-ctags
$ sudo snap install universal-ctags

as you can see, just to avoid conflicts of understanding which ctags we are using, I have removed exuberant-ctags to make sure we are only using universal-ctags..

Now, lets verify that we have installed universal-ctags using below command,

$ which ctags
$ ctags --help
Universal Ctags 0.0.0(e0a976d7), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Dec 16 2019, 17:58:44
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +xpath, +json, +interactive, +yaml, +packcc

Subscribe our Rurban Life YouTube Channel.. "Rural Life, Urban LifeStyle"

1 thought on “How to install universal-ctags on Ubuntu ?”

Leave a Comment