How To Install rtags on Fedora 34

rtags is A indexer for the c language family with Emacs integration

Introduction

In this tutorial we learn how to install rtags on Fedora 34.

What is rtags

RTags is a client/server application that indexes C/C++ code and keeps a persistent file-based database of references, declarations, definitions, symbolnames etc. There’s also limited support for ObjC/ObjC++. It allows you to find symbols by name (including nested class and namespace scope). Most importantly we give you proper follow-symbol and find-references support.

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

Install rtags on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install rtags

Install rtags on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install rtags

How To Uninstall rtags on Fedora 34

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

sudo dnf remove rtags

rtags Package Contents on Fedora 34

/usr/bin/gcc-rtags-wrapper.sh
/usr/bin/rc
/usr/bin/rdm
/usr/bin/rp
/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/cf4acb05e82f2c237b334a251d6c05913fdb17
/usr/lib/.build-id/52
/usr/lib/.build-id/52/8a11ed71dee492214f663fc44dbdaa65fd5432
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/43ae81a9073b9cc754ed46588f9ab7b4d2439f
/usr/lib/systemd/user/rtags.service
/usr/lib/systemd/user/rtags.socket
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/rc
/usr/share/bash-completion/completions/rdm
/usr/share/bash-completion/completions/rtags
/usr/share/doc/rtags
/usr/share/doc/rtags/README.org
/usr/share/emacs/site-lisp/rtags
/usr/share/emacs/site-lisp/rtags/ac-rtags.el
/usr/share/emacs/site-lisp/rtags/ac-rtags.elc
/usr/share/emacs/site-lisp/rtags/company-rtags.el
/usr/share/emacs/site-lisp/rtags/company-rtags.elc
/usr/share/emacs/site-lisp/rtags/flycheck-rtags.el
/usr/share/emacs/site-lisp/rtags/flycheck-rtags.elc
/usr/share/emacs/site-lisp/rtags/helm-rtags.el
/usr/share/emacs/site-lisp/rtags/helm-rtags.elc
/usr/share/emacs/site-lisp/rtags/ivy-rtags.el
/usr/share/emacs/site-lisp/rtags/ivy-rtags.elc
/usr/share/emacs/site-lisp/rtags/rtags.el
/usr/share/emacs/site-lisp/rtags/rtags.elc
/usr/share/licenses/rtags
/usr/share/licenses/rtags/LICENSE.txt
/usr/share/man/man7/rc.7.gz
/usr/share/man/man7/rdm.7.gz

References

Summary

In this tutorial we learn how to install rtags on Fedora 34 using yum and dnf.