How To Install polkitd-pkla on Debian 12

Learn how to install polkitd-pkla on Debian 12 with this tutorial. polkitd-pkla is Legacy local authority (.pkla) backend for polkitd

Introduction

In this tutorial we learn how to install polkitd-pkla on Debian 12.

What is polkitd-pkla

polkitd-pkla is:

polkit is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes. It was previously named PolicyKit.

This package configures the polkitd D-Bus service to read default authorization policies from .desktop-style files in subdirectories of /var/lib/polkit-1/localauthority. It is compatible with the version of polkitd used in Debian 11 and older releases.

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

Install polkitd-pkla Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install polkitd-pkla

Install polkitd-pkla Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install polkitd-pkla

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

sudo aptitude -y install polkitd-pkla

How To Uninstall polkitd-pkla on Debian 12

To uninstall only the polkitd-pkla package we can use the following command:

sudo apt-get remove polkitd-pkla

Uninstall polkitd-pkla And Its Dependencies

To uninstall polkitd-pkla and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove polkitd-pkla

Remove polkitd-pkla Configurations and Data

To remove polkitd-pkla configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge polkitd-pkla

Remove polkitd-pkla configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge polkitd-pkla

Dependencies

polkitd-pkla have the following dependencies:

References

Summary

In this tutorial we learn how to install polkitd-pkla package on Debian 12 using different package management tools: apt, apt-get and aptitude.