How To Install python3-wurlitzer on Kali Linux
Introduction
In this tutorial we learn how to install python3-wurlitzer on Kali Linux.
What is python3-wurlitzer
python3-wurlitzer is:
A common task in Python (especially while testing or debugging) is to redirect sys.stdout to a stream or a file while executing some piece of code. However, simply “redirecting stdout” is sometimes not as easy as one would expect. In particular, things become interesting when you want C code running within your Python process (including, but not limited to, Python modules implemented as C extensions) to also have its stdout redirected according to your wish. This turns out to be tricky and leads us into the interesting world of file descriptors, buffers and system calls.
This package supports redirecting this output in a straightforward way using a context manager.
There are three methods to install python3-wurlitzer 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 python3-wurlitzer Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install python3-wurlitzer using apt-get by running the following command:
sudo apt-get -y install python3-wurlitzerInstall python3-wurlitzer Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install python3-wurlitzer using apt by running the following command:
sudo apt -y install python3-wurlitzerInstall python3-wurlitzer 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 python3-wurlitzer using aptitude by running the following command:
sudo aptitude -y install python3-wurlitzerHow To Uninstall python3-wurlitzer on Kali Linux
To uninstall only the python3-wurlitzer package we can use the following command:
sudo apt-get remove python3-wurlitzerUninstall python3-wurlitzer And Its Dependencies
To uninstall python3-wurlitzer and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove python3-wurlitzerRemove python3-wurlitzer Configurations and Data
To remove python3-wurlitzer configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge python3-wurlitzerRemove python3-wurlitzer configuration, data, and all of its dependencies
We can use the following command to remove python3-wurlitzer configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-wurlitzerDependencies
python3-wurlitzer have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-wurlitzer package on Kali Linux using different package management tools: apt, apt-get and aptitude.