How To Install etckeeper on AlmaLinux 8
Introduction
In this tutorial we learn how to install etckeeper
on AlmaLinux 8.
What is etckeeper
The etckeeper program is a tool to let /etc be stored in a git, mercurial, bzr or darcs repository. It hooks into yum to automatically commit changes made to /etc during package upgrades. It tracks file metadata that version control systems do not normally support, but that is important for /etc, such as the permissions of /etc/shadow. It’s quite modular and configurable, while also being simple to use if you understand the basics of working with version control. The default backend is git, if want to use a another backend please install the appropriate tool (mercurial, darcs or bzr). To start using the package please read /usr/share/doc/etckeeper/README.
We can use yum
or dnf
to install etckeeper
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install etckeeper.
Install etckeeper 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 etckeeper
using dnf
by running the following command:
sudo dnf -y install etckeeper
Install etckeeper 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 etckeeper
using yum
by running the following command:
sudo yum -y install etckeeper
How To Uninstall etckeeper on AlmaLinux 8
To uninstall only the etckeeper
package we can use the following command:
sudo dnf remove etckeeper
References
Summary
In this tutorial we learn how to install etckeeper
on AlmaLinux 8 using yum and dnf.