How To Install augeas on AlmaLinux 8

In this tutorial we learn how to install augeas in AlmaLinux 8. augeas is A library for changing configuration files

Introduction

In this tutorial we learn how to install augeas on AlmaLinux 8.

What is augeas

A library for programmatically editing configuration files. Augeas parses configuration files into a tree structure, which it exposes through its public API. Changes made through the API are written back to the initially read files. The transformation works very hard to preserve comments and formatting details. It is controlled by ``lens’’ definitions that describe the file format and the transformation into a tree.

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

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

sudo dnf -y install augeas

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

sudo yum -y install augeas

How To Uninstall augeas on AlmaLinux 8

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

sudo dnf remove augeas

References

Summary

In this tutorial we learn how to install augeas on AlmaLinux 8 using yum and dnf.