etckeeper command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
etckeeper: command not found
or when using sudo you get the following error message
sudo: etckeeper: command not found
Solutions to etckeeper: command not found
How To Fix etckeeper: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu etckeeper is provided by etckeeper package.
etckeeper is:
The etckeeper program is a tool to let /etc be stored in a git, mercurial, brz or darcs repository. It hooks into APT 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.
To fix this problem, we can install more using the command below.
sudo apt-get -y install etckeeper
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install etckeeper.
sudo apt -y install etckeeper
Or if you have aptitude installed you can use the following command.
sudo aptitude install etckeeper
Summary
In this tutorial we learn how to fix etckeeper command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.