How To Install plainbox-secure-policy on Ubuntu 18.04

In this tutorial we learn how to install plainbox-secure-policy on Ubuntu 18.04. plainbox-secure-policy is policykit policy required to use plainbox (secure version)

Introduction

In this tutorial we learn how to install plainbox-secure-policy on Ubuntu 18.04.

What is plainbox-secure-policy

plainbox-secure-policy is:

PlainBox is a toolkit consisting of python3 library, development tools, documentation and examples. It is targeted at developers working on testing or certification applications and authors creating tests for such applications.

PlainBox can be used to both create simple and comprehensive test tools as well as to develop and execute test jobs and test scenarios. It was created as a refined and rewritten core of the Checkbox project. It has a well tested and documented core, small but active development community and a collection of associated projects that use it as a lower-level engine/back-end library.

PlainBox has a novel approach to discovering (and probing) hardware and software that is extensible and not hardwired into the system. It allows test developers to express association between a particular test and the hardware, software and configuration constraints that must be met for the test to execute meaningfully. This feature, along with pluggable test definitions, makes plainbox flexible and applicable to many diverse testing situations, ranging from mobile phones, traditional desktop computers, servers and up to testing “cloud” installations.

This package contains a PolicyKit .policy file that allows PlainBox to run plainbox-trusted-launcher-1 as root and ask for the user password only once per session.

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

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

sudo apt-get update

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

sudo apt-get -y install plainbox-secure-policy

Install plainbox-secure-policy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install plainbox-secure-policy using apt by running the following command:

sudo apt -y install plainbox-secure-policy

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

sudo aptitude -y install plainbox-secure-policy

How To Uninstall plainbox-secure-policy on Ubuntu 18.04

To uninstall only the plainbox-secure-policy package we can use the following command:

sudo apt-get remove plainbox-secure-policy

Uninstall plainbox-secure-policy And Its Dependencies

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

sudo apt-get -y autoremove plainbox-secure-policy

Remove plainbox-secure-policy Configurations and Data

To remove plainbox-secure-policy configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge plainbox-secure-policy

Remove plainbox-secure-policy configuration, data, and all of its dependencies

We can use the following command to remove plainbox-secure-policy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge plainbox-secure-policy

References

Summary

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