How To Install cppi on Fedora 36

In this tutorial we learn how to install cppi in Fedora 36. cppi is C preprocessor directive indenter

Introduction

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

What is cppi

cppi indents the C preprocessor directives to reflect their nesting and ensures that there is exactly one space character between each #if, #elif, #define directive and the following token.

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

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

sudo dnf -y install cppi

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

sudo yum -y install cppi

How To Uninstall cppi on Fedora 36

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

sudo dnf remove cppi

cppi Package Contents on Fedora 36

/usr/bin/cppi
/usr/lib/.build-id
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/36c11e6687a7bf7777b86c54764256e0ccf406
/usr/share/doc/cppi
/usr/share/doc/cppi/AUTHORS
/usr/share/doc/cppi/COPYING
/usr/share/doc/cppi/ChangeLog
/usr/share/doc/cppi/NEWS
/usr/share/doc/cppi/THANKS
/usr/share/doc/cppi/TODO
/usr/share/locale/de/LC_MESSAGES/cppi.mo
/usr/share/locale/eo/LC_MESSAGES/cppi.mo
/usr/share/locale/fi/LC_MESSAGES/cppi.mo
/usr/share/locale/fr/LC_MESSAGES/cppi.mo
/usr/share/locale/gl/LC_MESSAGES/cppi.mo
/usr/share/locale/hr/LC_MESSAGES/cppi.mo
/usr/share/locale/it/LC_MESSAGES/cppi.mo
/usr/share/locale/ja/LC_MESSAGES/cppi.mo
/usr/share/locale/pl/LC_MESSAGES/cppi.mo
/usr/share/locale/sr/LC_MESSAGES/cppi.mo
/usr/share/locale/sv/LC_MESSAGES/cppi.mo
/usr/share/locale/uk/LC_MESSAGES/cppi.mo
/usr/share/locale/vi/LC_MESSAGES/cppi.mo
/usr/share/man/man1/cppi.1.gz

References

Summary

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