How To Install selinux-policy-doc on Debian 10

Learn how to install selinux-policy-doc on Debian 10 with this tutorial. selinux-policy-doc is Documentation for the SELinux reference policy

Introduction

In this tutorial we learn how to install selinux-policy-doc on Debian 10.

What is selinux-policy-doc

selinux-policy-doc is:

The SELinux Reference Policy (refpolicy) is a complete SELinux policy, as an alternative to the existing strict and targeted policies available from http://selinux.sf.net. The goal is to have this policy as the system policy, be and used as the basis for creating other policies. Refpolicy is based on the current strict and targeted policies, but aims to accomplish many additional goals:

  • Strong Modularity
  • Clearly stated security Goals
  • Documentation
  • Development Tool Support
  • Forward Looking
  • Configurability
  • Flexible Base Policy
  • Application Policy Variations
  • Multi-Level Security

This package contains the documentation for the reference policy.

There are three methods to install selinux-policy-doc on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install selinux-policy-doc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install selinux-policy-doc

Install selinux-policy-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install selinux-policy-doc

Install selinux-policy-doc 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install selinux-policy-doc using aptitude by running the following command:

sudo aptitude -y install selinux-policy-doc

How To Uninstall selinux-policy-doc on Debian 10

To uninstall only the selinux-policy-doc package we can use the following command:

sudo apt-get remove selinux-policy-doc

Uninstall selinux-policy-doc And Its Dependencies

To uninstall selinux-policy-doc and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove selinux-policy-doc

Remove selinux-policy-doc Configurations and Data

To remove selinux-policy-doc configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge selinux-policy-doc

Remove selinux-policy-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge selinux-policy-doc

Dependencies

selinux-policy-doc have the following dependencies:

References

Summary

In this tutorial we learn how to install selinux-policy-doc package on Debian 10 using different package management tools: apt, apt-get and aptitude.