How To Install python3-librepo on Kali Linux
Introduction
In this tutorial we learn how to install python3-librepo on Kali Linux.
What is python3-librepo
python3-librepo is:
A library providing C and Python (libcURL-like) APIs to download repository metadata.
This package installs the librepo library for Python 3.
There are three methods to install python3-librepo 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-librepo Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install python3-librepo using apt-get by running the following command:
sudo apt-get -y install python3-librepoInstall python3-librepo Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install python3-librepo using apt by running the following command:
sudo apt -y install python3-librepoInstall python3-librepo 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-librepo using aptitude by running the following command:
sudo aptitude -y install python3-librepoHow To Uninstall python3-librepo on Kali Linux
To uninstall only the python3-librepo package we can use the following command:
sudo apt-get remove python3-librepoUninstall python3-librepo And Its Dependencies
To uninstall python3-librepo and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove python3-librepoRemove python3-librepo Configurations and Data
To remove python3-librepo configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge python3-librepoRemove python3-librepo configuration, data, and all of its dependencies
We can use the following command to remove python3-librepo configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-librepoDependencies
python3-librepo have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-librepo package on Kali Linux using different package management tools: apt, apt-get and aptitude.