How To Install python3-box on Kali Linux

In this tutorial we learn how to install python3-box on Kali Linux. python3-box is Python dictionaries with advanced dot notation access

Introduction

In this tutorial we learn how to install python3-box on Kali Linux.

What is python3-box

python3-box is:

Box is designed to be an easy drop in transparently replacements for dictionaries, thanks to Python’s duck typing capabilities, which adds dot notation access. Any sub dictionaries or ones set after initiation will be automatically converted to a Box object. You can always run .to_dict() on it to return the object and all sub objects back into a regular dictionary.

There are three methods to install python3-box 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-box Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python3-box

Install python3-box Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-box

Install python3-box 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 update

After updating apt database, We can install python3-box using aptitude by running the following command:

sudo aptitude -y install python3-box

How To Uninstall python3-box on Kali Linux

To uninstall only the python3-box package we can use the following command:

sudo apt-get remove python3-box

Uninstall python3-box And Its Dependencies

To uninstall python3-box and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove python3-box

Remove python3-box Configurations and Data

To remove python3-box configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge python3-box

Remove python3-box configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-box

Dependencies

python3-box have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-box package on Kali Linux using different package management tools: apt, apt-get and aptitude.