How To Install hgsubversion on Ubuntu 20.04
Introduction
In this tutorial we learn how to install hgsubversion on Ubuntu 20.04.
What is hgsubversion
hgsubversion is:
hgsubversion is an extension for Mercurial that allows using Mercurial as a Subversion client.
At this point, hgsubversion is usable by users reasonably familiar with Mercurial as a VCS. It’s not recommended to dive into hgsubversion as an introduction to Mercurial, since hgsubversion “bends the rules” a little and violates some of the typical assumptions of early Mercurial users.
There are three methods to install hgsubversion on Ubuntu 20.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 hgsubversion Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install hgsubversion using apt-get by running the following command:
sudo apt-get -y install hgsubversion
Install hgsubversion Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install hgsubversion using apt by running the following command:
sudo apt -y install hgsubversion
Install hgsubversion 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 hgsubversion using aptitude by running the following command:
sudo aptitude -y install hgsubversion
How To Uninstall hgsubversion on Ubuntu 20.04
To uninstall only the hgsubversion package we can use the following command:
sudo apt-get remove hgsubversion
Uninstall hgsubversion And Its Dependencies
To uninstall hgsubversion and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove hgsubversion
Remove hgsubversion Configurations and Data
To remove hgsubversion configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge hgsubversion
Remove hgsubversion configuration, data, and all of its dependencies
We can use the following command to remove hgsubversion configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge hgsubversion
References
Summary
In this tutorial we learn how to install hgsubversion package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.