How To Install brightnessctl on Ubuntu 20.04

In this tutorial we learn how to install brightnessctl on Ubuntu 20.04. brightnessctl is Control backlight brightness

Introduction

In this tutorial we learn how to install brightnessctl on Ubuntu 20.04.

What is brightnessctl

brightnessctl is:

brightnessctl is a small utility to control the brightness of a screen’s backlight.

This package contains the brightnessctl utility itself.

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

Install brightnessctl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install brightnessctl

Install brightnessctl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install brightnessctl

Install brightnessctl 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install brightnessctl

How To Uninstall brightnessctl on Ubuntu 20.04

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

sudo apt-get remove brightnessctl

Uninstall brightnessctl And Its Dependencies

To uninstall brightnessctl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove brightnessctl

Remove brightnessctl Configurations and Data

To remove brightnessctl configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge brightnessctl

Remove brightnessctl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge brightnessctl

References

Summary

In this tutorial we learn how to install brightnessctl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.