How To Install libboxfort on Ubuntu 20.04

In this tutorial we learn how to install libboxfort on Ubuntu 20.04. libboxfort is simple, cross-platform sandboxing C library powering Criterion

Introduction

In this tutorial we learn how to install libboxfort on Ubuntu 20.04.

What is libboxfort

libboxfort is:

BoxFort provides a simple API to run user code in isolated processes.

Although BoxFort provides some kind of security of the parent process from spawned sandboxes, a sandbox has by default the same system permissions and access than its parent, and is hence, without care, ill-fitted for security purposes.

The main goal of this project is not security, but portable code isolation – if you want complete system isolation, consider using properly configured containers.

There are three methods to install libboxfort on Ubuntu 20.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 libboxfort Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libboxfort

Install libboxfort Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libboxfort

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

sudo aptitude -y install libboxfort

How To Uninstall libboxfort on Ubuntu 20.04

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

sudo apt-get remove libboxfort

Uninstall libboxfort And Its Dependencies

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

sudo apt-get -y autoremove libboxfort

Remove libboxfort Configurations and Data

To remove libboxfort configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libboxfort

Remove libboxfort configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libboxfort

References

Summary

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