How To Install hg-fast-export on Ubuntu 18.04
Introduction
In this tutorial we learn how to install hg-fast-export
on Ubuntu 18.04.
What is hg-fast-export
hg-fast-export is:
hg-fast-export tool allows incremental import of mercurial repositories to git repositories.
It can automatically import a local hg repo into a local git repo using just one command. Subsequent importing of new changesets is supported.
Included git-hg wrapper script can be used to transparently track Mercurial repositories without a separate checkout. It also includes experimental support for pushing back to Mercurial.
There are three methods to install hg-fast-export
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 hg-fast-export Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install hg-fast-export
using apt-get
by running the following command:
sudo apt-get -y install hg-fast-export
Install hg-fast-export Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install hg-fast-export
using apt
by running the following command:
sudo apt -y install hg-fast-export
Install hg-fast-export 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 hg-fast-export
using aptitude
by running the following command:
sudo aptitude -y install hg-fast-export
How To Uninstall hg-fast-export on Ubuntu 18.04
To uninstall only the hg-fast-export
package we can use the following command:
sudo apt-get remove hg-fast-export
Uninstall hg-fast-export And Its Dependencies
To uninstall hg-fast-export
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove hg-fast-export
Remove hg-fast-export Configurations and Data
To remove hg-fast-export
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge hg-fast-export
Remove hg-fast-export configuration, data, and all of its dependencies
We can use the following command to remove hg-fast-export
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge hg-fast-export
References
Summary
In this tutorial we learn how to install hg-fast-export
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.