How To Install portreserve on Kali Linux
Introduction
In this tutorial we learn how to install portreserve on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install portreserve using apt-get by running the following command:
sudo apt-get -y install portreserveInstall portreserve Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install portreserve using apt by running the following command:
sudo apt -y install portreserveInstall portreserve Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install portreserve using aptitude by running the following command:
sudo aptitude -y install portreserveHow To Uninstall portreserve on Kali Linux
To uninstall only the portreserve package we can use the following command:
sudo apt-get remove portreserveUninstall portreserve And Its Dependencies
To uninstall portreserve and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove portreserveRemove portreserve Configurations and Data
To remove portreserve configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge portreserveRemove 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 portreserveDependencies
portreserve have the following dependencies:
References
Summary
In this tutorial we learn how to install portreserve package on Kali Linux using different package management tools: apt, apt-get and aptitude.