How To Install portreserve on Debian 10

Learn how to install portreserve on Debian 10 with this tutorial. portreserve is Port reservation program

Introduction

In this tutorial we learn how to install portreserve on Debian 10.

What is portreserve

portreserve is:

The portreserve program aims to help services with well-known ports that lie in the bindresvport() range (currently 600-1023). It prevents programs requesting a port to the libc from occupying a real service’s port by occupying it itself, until the real service tells it to release the port (generally in its init script).

There are three methods to install portreserve on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install portreserve Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install portreserve

Install portreserve Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install portreserve

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

sudo aptitude -y install portreserve

How To Uninstall portreserve on Debian 10

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

sudo apt-get remove portreserve

Uninstall portreserve And Its Dependencies

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

sudo apt-get -y autoremove portreserve

Remove portreserve Configurations and Data

To remove portreserve configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge portreserve

Remove portreserve configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge portreserve

Dependencies

portreserve have the following dependencies:

References

Summary

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