How To Install debpartial-mirror on Debian 9

In this tutorial we learn how to install debpartial-mirror on Debian 9. debpartial-mirror is tools to create partial Debian mirrors

Introduction

In this tutorial we learn how to install debpartial-mirror on Debian 9.

What is debpartial-mirror

debpartial-mirror is:

Mirroring of partial Debian repositories is easy with the debpartial-mirror tool.

With it, you can mirror selected sections, priorities, packages, virtual packages, or even files and directories matching regular expressions. Packages may be drawn from any number of sources, with dependencies for each source resolved from whichever other sources you specify.

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

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

sudo apt-get update

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

sudo apt-get -y install debpartial-mirror

Install debpartial-mirror Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install debpartial-mirror

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

sudo aptitude -y install debpartial-mirror

How To Uninstall debpartial-mirror on Debian 9

To uninstall only the debpartial-mirror package we can use the following command:

sudo apt-get remove debpartial-mirror

Uninstall debpartial-mirror And Its Dependencies

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

sudo apt-get -y autoremove debpartial-mirror

Remove debpartial-mirror Configurations and Data

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

sudo apt-get -y purge debpartial-mirror

Remove debpartial-mirror configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge debpartial-mirror

Dependencies

debpartial-mirror have the following dependencies:

References

Summary

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