How To Install python-pcs on Debian 9
Introduction
In this tutorial we learn how to install python-pcs on Debian 9.
What is python-pcs
python-pcs is:
PCS is a set of Python modules and objects that make building network protocol code easier for the protocol developer. It provides functionality to encode and decode network packets in various formats as well as a set of classes for the most commonly used network protocols. libpcap can be used to read packets from dump files or network devices and to inject constructed packets into the network.
There are three methods to install python-pcs 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 python-pcs Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install python-pcs using apt-get by running the following command:
sudo apt-get -y install python-pcs
Install python-pcs Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install python-pcs using apt by running the following command:
sudo apt -y install python-pcs
Install python-pcs 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 python-pcs using aptitude by running the following command:
sudo aptitude -y install python-pcs
How To Uninstall python-pcs on Debian 9
To uninstall only the python-pcs package we can use the following command:
sudo apt-get remove python-pcs
Uninstall python-pcs And Its Dependencies
To uninstall python-pcs and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-pcs
Remove python-pcs Configurations and Data
To remove python-pcs configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-pcs
Remove python-pcs configuration, data, and all of its dependencies
We can use the following command to remove python-pcs configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-pcs
Dependencies
python-pcs have the following dependencies:
References
Summary
In this tutorial we learn how to install python-pcs package on Debian 9 using different package management tools: apt, apt-get and aptitude.