How To Install selinux-policy-src on Debian 11
Introduction
In this tutorial we learn how to install selinux-policy-src
on Debian 11.
What is selinux-policy-src
selinux-policy-src 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 is the source of the policy, provided so that local variations of SELinux policy may be created.
There are three methods to install selinux-policy-src
on Debian 11. 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-src 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-src
using apt-get
by running the following command:
sudo apt-get -y install selinux-policy-src
Install selinux-policy-src Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install selinux-policy-src
using apt
by running the following command:
sudo apt -y install selinux-policy-src
Install selinux-policy-src 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-src
using aptitude
by running the following command:
sudo aptitude -y install selinux-policy-src
How To Uninstall selinux-policy-src on Debian 11
To uninstall only the selinux-policy-src
package we can use the following command:
sudo apt-get remove selinux-policy-src
Uninstall selinux-policy-src And Its Dependencies
To uninstall selinux-policy-src
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove selinux-policy-src
Remove selinux-policy-src Configurations and Data
To remove selinux-policy-src
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge selinux-policy-src
Remove selinux-policy-src configuration, data, and all of its dependencies
We can use the following command to remove selinux-policy-src
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge selinux-policy-src
Dependencies
selinux-policy-src have the following dependencies:
References
Summary
In this tutorial we learn how to install selinux-policy-src
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.