How To Install indent on AlmaLinux 8
Introduction
In this tutorial we learn how to install indent
on AlmaLinux 8.
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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install indent.
Install indent on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install indent
using dnf
by running the following command:
sudo dnf -y install indent
Install indent on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
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 AlmaLinux 8
To uninstall only the indent
package we can use the following command:
sudo dnf remove indent
References
Summary
In this tutorial we learn how to install indent
on AlmaLinux 8 using yum and dnf.