How To Install python-hachoir-subfile on Ubuntu 18.04

In this tutorial we learn how to install python-hachoir-subfile on Ubuntu 18.04. python-hachoir-subfile is find subfiles in any binary stream

Introduction

In this tutorial we learn how to install python-hachoir-subfile on Ubuntu 18.04.

What is python-hachoir-subfile

python-hachoir-subfile is:

hachoir-subfile is a tool based on hachoir-parser to find subfiles in any binary stream.

There are three methods to install python-hachoir-subfile on Ubuntu 18.04. 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-hachoir-subfile 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-hachoir-subfile using apt-get by running the following command:

sudo apt-get -y install python-hachoir-subfile

Install python-hachoir-subfile Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-hachoir-subfile using apt by running the following command:

sudo apt -y install python-hachoir-subfile

Install python-hachoir-subfile 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-hachoir-subfile using aptitude by running the following command:

sudo aptitude -y install python-hachoir-subfile

How To Uninstall python-hachoir-subfile on Ubuntu 18.04

To uninstall only the python-hachoir-subfile package we can use the following command:

sudo apt-get remove python-hachoir-subfile

Uninstall python-hachoir-subfile And Its Dependencies

To uninstall python-hachoir-subfile and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-hachoir-subfile

Remove python-hachoir-subfile Configurations and Data

To remove python-hachoir-subfile configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-hachoir-subfile

Remove python-hachoir-subfile configuration, data, and all of its dependencies

We can use the following command to remove python-hachoir-subfile configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-hachoir-subfile

References

Summary

In this tutorial we learn how to install python-hachoir-subfile package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.