How To Install consolekit on Debian 9

In this tutorial we learn how to install consolekit on Debian 9. consolekit is framework for defining and tracking users, sessions and seats

Introduction

In this tutorial we learn how to install consolekit on Debian 9.

What is consolekit

consolekit is:

ConsoleKit is a system daemon for tracking what users are logged into the system and how they interact with the computer (e.g. which keyboard and mouse they use).

It provides asynchronous notification via the system message bus.

This package provides the system daemon and tools to interact with it.

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

Install consolekit Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install consolekit

Install consolekit Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install consolekit using apt by running the following command:

sudo apt -y install consolekit

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

sudo aptitude -y install consolekit

How To Uninstall consolekit on Debian 9

To uninstall only the consolekit package we can use the following command:

sudo apt-get remove consolekit

Uninstall consolekit And Its Dependencies

To uninstall consolekit and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove consolekit

Remove consolekit Configurations and Data

To remove consolekit configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge consolekit

Remove consolekit configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge consolekit

Dependencies

consolekit have the following dependencies:

References

Summary

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