How To Install mercurial-nested on Debian 9

In this tutorial we learn how to install mercurial-nested on Debian 9. mercurial-nested is Mercurial extension to work with nested repositories

Introduction

In this tutorial we learn how to install mercurial-nested on Debian 9.

What is mercurial-nested

mercurial-nested is:

The extension was inspired by the forest extension by Robin Farine. It allows one to apply common Mercurial commands to all the nested repositories at once like pull, push etc. It allows also to fetch a complete tree of repositories through ssh or http.

There are three methods to install mercurial-nested 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 mercurial-nested Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mercurial-nested

Install mercurial-nested Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mercurial-nested

Install mercurial-nested 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 mercurial-nested using aptitude by running the following command:

sudo aptitude -y install mercurial-nested

How To Uninstall mercurial-nested on Debian 9

To uninstall only the mercurial-nested package we can use the following command:

sudo apt-get remove mercurial-nested

Uninstall mercurial-nested And Its Dependencies

To uninstall mercurial-nested and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove mercurial-nested

Remove mercurial-nested Configurations and Data

To remove mercurial-nested configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge mercurial-nested

Remove mercurial-nested configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mercurial-nested

Dependencies

mercurial-nested have the following dependencies:

References

Summary

In this tutorial we learn how to install mercurial-nested package on Debian 9 using different package management tools: apt, apt-get and aptitude.