How To Install svnmailer on Ubuntu 18.04

In this tutorial we learn how to install svnmailer on Ubuntu 18.04. svnmailer is extensible Subversion commit notification tool

Introduction

In this tutorial we learn how to install svnmailer on Ubuntu 18.04.

What is svnmailer

svnmailer is:

The svnmailer is a tool, which is usually called by a Subversion hook to submit commit notifications in various ways (at the moment: mail via SMTP or a pipe to a sendmail like program, news via NNTP, CIA live tracker notification via XML-RPC). It is derived from the original mailer.py distributed with Subversion, but supposed to be much more consistent, better extensible and to have much more features. Have a look at the documentation for further details.

There are three methods to install svnmailer on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install svnmailer Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install svnmailer using apt-get by running the following command:

sudo apt-get -y install svnmailer

Install svnmailer Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install svnmailer using apt by running the following command:

sudo apt -y install svnmailer

Install svnmailer 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install svnmailer using aptitude by running the following command:

sudo aptitude -y install svnmailer

How To Uninstall svnmailer on Ubuntu 18.04

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

sudo apt-get remove svnmailer

Uninstall svnmailer And Its Dependencies

To uninstall svnmailer and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove svnmailer

Remove svnmailer Configurations and Data

To remove svnmailer configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge svnmailer

Remove svnmailer configuration, data, and all of its dependencies

We can use the following command to remove svnmailer configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge svnmailer

References

Summary

In this tutorial we learn how to install svnmailer package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.