How To Install rsbac-admin on Ubuntu 18.04

In this tutorial we learn how to install rsbac-admin on Ubuntu 18.04. rsbac-admin is Rule Set Based Access Control administrative utilities

Introduction

In this tutorial we learn how to install rsbac-admin on Ubuntu 18.04.

What is rsbac-admin

rsbac-admin is:

RSBAC (Rule Set Based Access Control) is a kernel patch which adds several mandatory access models to the Linux kernel. These models can be used to enhance the security of a Linux system.

The rsbac-admin utilities provide a way to set security properties for these modules. You need these utilities to be able to use these advanced security functions.

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

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

sudo apt-get update

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

sudo apt-get -y install rsbac-admin

Install rsbac-admin Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install rsbac-admin

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

sudo aptitude -y install rsbac-admin

How To Uninstall rsbac-admin on Ubuntu 18.04

To uninstall only the rsbac-admin package we can use the following command:

sudo apt-get remove rsbac-admin

Uninstall rsbac-admin And Its Dependencies

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

sudo apt-get -y autoremove rsbac-admin

Remove rsbac-admin Configurations and Data

To remove rsbac-admin configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge rsbac-admin

Remove rsbac-admin configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge rsbac-admin

References

Summary

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