How To Install policy-rcd-declarative-allow-all on Kali Linux

In this tutorial we learn how to install policy-rcd-declarative-allow-all on Kali Linux. policy-rcd-declarative-allow-all is Permissive default policy for policy-rcd-declarative

Introduction

In this tutorial we learn how to install policy-rcd-declarative-allow-all on Kali Linux.

What is policy-rcd-declarative-allow-all

policy-rcd-declarative-allow-all is:

Debian policy states that packages providing system services need to start those services by default, and that the starting of the service should be done by way of the /usr/sbin/invoke-rc.d script. This script will execute a program /usr/sbin/policy-rc.d if it exists, allowing the local system administrator to override behaviour if wanted by creating a policy script accordin to the interface specified and installing it under the correct name. This interface is however somewhat problematic, as explained in https://bugs.debian.org/911290. The package policy-rcd-declarative attempts to remedy these issues.

This package contains a default policy for policy-rcd-declarative that allows all services to start. Using it without any more specific policies is equivalent to not installing the policy-rcd-declarative package at all.

There are three methods to install policy-rcd-declarative-allow-all on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install policy-rcd-declarative-allow-all Using apt-get

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

sudo apt-get update

After updating apt database, We can install policy-rcd-declarative-allow-all using apt-get by running the following command:

sudo apt-get -y install policy-rcd-declarative-allow-all

Install policy-rcd-declarative-allow-all Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install policy-rcd-declarative-allow-all using apt by running the following command:

sudo apt -y install policy-rcd-declarative-allow-all

Install policy-rcd-declarative-allow-all Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install policy-rcd-declarative-allow-all using aptitude by running the following command:

sudo aptitude -y install policy-rcd-declarative-allow-all

How To Uninstall policy-rcd-declarative-allow-all on Kali Linux

To uninstall only the policy-rcd-declarative-allow-all package we can use the following command:

sudo apt-get remove policy-rcd-declarative-allow-all

Uninstall policy-rcd-declarative-allow-all And Its Dependencies

To uninstall policy-rcd-declarative-allow-all and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove policy-rcd-declarative-allow-all

Remove policy-rcd-declarative-allow-all Configurations and Data

To remove policy-rcd-declarative-allow-all configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge policy-rcd-declarative-allow-all

Remove policy-rcd-declarative-allow-all configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge policy-rcd-declarative-allow-all

Dependencies

policy-rcd-declarative-allow-all have the following dependencies:

References

Summary

In this tutorial we learn how to install policy-rcd-declarative-allow-all package on Kali Linux using different package management tools: apt, apt-get and aptitude.