How To Install augeas on CentOS 7

In this tutorial we learn how to install augeas on CentOS 7. augeas is A library for changing configuration files

Introduction

In this tutorial we learn how to install augeas on CentOS 7.

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. This package attempts to be compatible with Augeas 1.1.0 as shipped in EL7.0, where possible.

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

Install augeas on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install augeas

Install augeas on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install augeas

How To Uninstall augeas on CentOS 7

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 CentOS 7 using yum and dnf.