How To Install grokmirror on Debian 9

In this tutorial we learn how to install grokmirror on Debian 9. grokmirror is framework to smartly mirror git repositories

Introduction

In this tutorial we learn how to install grokmirror on Debian 9.

What is grokmirror

grokmirror is:

grokmirror mirrors large git repository collections efficiently. It uses a manifest file published by a master mirror in order to figure out which repositories to clone and to track which repositories require updating. The process is extremely lightweight and efficient for both the master and its mirrors.

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

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

sudo apt-get update

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

sudo apt-get -y install grokmirror

Install grokmirror Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install grokmirror

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

sudo aptitude -y install grokmirror

How To Uninstall grokmirror on Debian 9

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

sudo apt-get remove grokmirror

Uninstall grokmirror And Its Dependencies

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

sudo apt-get -y autoremove grokmirror

Remove grokmirror Configurations and Data

To remove grokmirror configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge grokmirror

Remove grokmirror configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge grokmirror

Dependencies

grokmirror have the following dependencies:

References

Summary

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