How To Install git-notifier on Debian 9
Introduction
In this tutorial we learn how to install git-notifier
on Debian 9.
What is git-notifier
git-notifier is:
git-notifier is a script to be used with git as a post-receive hook. Once installed, it emails out a summary of all changes each time a user pushes an update to the repository. Different from other similar scripts, git-notifier sends exactly one email per change, each of which includes a complete diff of all modifications as well as the set of branches from which the new revision can be reached. The script ensures that each change is mailed out only exactly once by keeping a state file of already reported revisions. The script integrates nicely with gitolite.
There are three methods to install git-notifier
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install git-notifier Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install git-notifier
using apt-get
by running the following command:
sudo apt-get -y install git-notifier
Install git-notifier Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install git-notifier
using apt
by running the following command:
sudo apt -y install git-notifier
Install git-notifier Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install git-notifier
using aptitude
by running the following command:
sudo aptitude -y install git-notifier
How To Uninstall git-notifier on Debian 9
To uninstall only the git-notifier
package we can use the following command:
sudo apt-get remove git-notifier
Uninstall git-notifier And Its Dependencies
To uninstall git-notifier
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove git-notifier
Remove git-notifier Configurations and Data
To remove git-notifier
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge git-notifier
Remove git-notifier configuration, data, and all of its dependencies
We can use the following command to remove git-notifier
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge git-notifier
Dependencies
git-notifier have the following dependencies:
References
Summary
In this tutorial we learn how to install git-notifier
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.