How To Install makejail on Ubuntu 18.04

In this tutorial we learn how to install makejail on Ubuntu 18.04. makejail is Automatically create chroot jails for programs

Introduction

In this tutorial we learn how to install makejail on Ubuntu 18.04.

What is makejail

makejail is:

Makejail helps an administrator to create and update a chroot jail using short configuration files. If not enough information is provided in these it will attempt to guess which files are required by the daemon and will install all of them in the jail.

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

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

sudo apt-get update

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

sudo apt-get -y install makejail

Install makejail Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install makejail using apt by running the following command:

sudo apt -y install makejail

Install makejail 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 makejail using aptitude by running the following command:

sudo aptitude -y install makejail

How To Uninstall makejail on Ubuntu 18.04

To uninstall only the makejail package we can use the following command:

sudo apt-get remove makejail

Uninstall makejail And Its Dependencies

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

sudo apt-get -y autoremove makejail

Remove makejail Configurations and Data

To remove makejail configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge makejail

Remove makejail configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge makejail

References

Summary

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