How To Install indent on Fedora 34

indent is A GNU program for formatting C code

Introduction

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

What is indent

Indent is a GNU program for beautifying C code, so that it is easier to read. Indent can also convert from one C writing style to a different one. Indent understands correct C syntax and tries to handle incorrect C syntax. Install the indent package if you are developing applications in C and you want a program to format your code.

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

Install indent 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 indent using dnf by running the following command:

sudo dnf -y install indent

Install indent 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 indent using yum by running the following command:

sudo yum -y install indent

How To Uninstall indent on Fedora 34

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

sudo dnf remove indent

indent Package Contents on Fedora 34

/usr/bin/indent
/usr/lib/.build-id
/usr/lib/.build-id/70
/usr/lib/.build-id/70/874d5d3e29171820a26b27431a0d15ae75c41c
/usr/share/doc/indent
/usr/share/doc/indent/AUTHORS
/usr/share/doc/indent/ChangeLog
/usr/share/doc/indent/ChangeLog-1990
/usr/share/doc/indent/ChangeLog-1998
/usr/share/doc/indent/ChangeLog-2001
/usr/share/doc/indent/NEWS
/usr/share/doc/indent/README.md
/usr/share/info/indent.info.gz
/usr/share/licenses/indent
/usr/share/licenses/indent/COPYING
/usr/share/locale/bg/LC_MESSAGES/indent.mo
/usr/share/locale/ca/LC_MESSAGES/indent.mo
/usr/share/locale/cs/LC_MESSAGES/indent.mo
/usr/share/locale/da/LC_MESSAGES/indent.mo
/usr/share/locale/de/LC_MESSAGES/indent.mo
/usr/share/locale/el/LC_MESSAGES/indent.mo
/usr/share/locale/eo/LC_MESSAGES/indent.mo
/usr/share/locale/es/LC_MESSAGES/indent.mo
/usr/share/locale/et/LC_MESSAGES/indent.mo
/usr/share/locale/eu/LC_MESSAGES/indent.mo
/usr/share/locale/fi/LC_MESSAGES/indent.mo
/usr/share/locale/fr/LC_MESSAGES/indent.mo
/usr/share/locale/ga/LC_MESSAGES/indent.mo
/usr/share/locale/gl/LC_MESSAGES/indent.mo
/usr/share/locale/hr/LC_MESSAGES/indent.mo
/usr/share/locale/hu/LC_MESSAGES/indent.mo
/usr/share/locale/id/LC_MESSAGES/indent.mo
/usr/share/locale/it/LC_MESSAGES/indent.mo
/usr/share/locale/ja/LC_MESSAGES/indent.mo
/usr/share/locale/ko/LC_MESSAGES/indent.mo
/usr/share/locale/nl/LC_MESSAGES/indent.mo
/usr/share/locale/pl/LC_MESSAGES/indent.mo
/usr/share/locale/pt_BR/LC_MESSAGES/indent.mo
/usr/share/locale/ro/LC_MESSAGES/indent.mo
/usr/share/locale/ru/LC_MESSAGES/indent.mo
/usr/share/locale/sk/LC_MESSAGES/indent.mo
/usr/share/locale/sr/LC_MESSAGES/indent.mo
/usr/share/locale/sv/LC_MESSAGES/indent.mo
/usr/share/locale/tr/LC_MESSAGES/indent.mo
/usr/share/locale/uk/LC_MESSAGES/indent.mo
/usr/share/locale/vi/LC_MESSAGES/indent.mo
/usr/share/locale/zh_CN/LC_MESSAGES/indent.mo
/usr/share/locale/zh_TW.Big5/LC_MESSAGES/indent.mo
/usr/share/locale/zh_TW/LC_MESSAGES/indent.mo
/usr/share/man/man1/indent.1.gz

References

Summary

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