How To Install thinkfan on Ubuntu 18.04

In this tutorial we learn how to install thinkfan on Ubuntu 18.04. thinkfan is simple and lightweight fan control program

Introduction

In this tutorial we learn how to install thinkfan on Ubuntu 18.04.

What is thinkfan

thinkfan is:

Some hardware has a kind of broken fan-control and lets the fan run faster than really needed. Thinkfan will prevent this by controlling the fan on its own (the fan speed for each temperature interval can be adjusted in the configuration file).

Originally designed specifically for IBM/Lenovo Thinkpads, it supports any kind of system via the sysfs hwmon interface. It is designed to eat as little CPU power as possible.

There are three methods to install thinkfan on Ubuntu 18.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 thinkfan Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install thinkfan

Install thinkfan Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install thinkfan

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

sudo aptitude -y install thinkfan

How To Uninstall thinkfan on Ubuntu 18.04

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

sudo apt-get remove thinkfan

Uninstall thinkfan And Its Dependencies

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

sudo apt-get -y autoremove thinkfan

Remove thinkfan Configurations and Data

To remove thinkfan configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge thinkfan

Remove thinkfan configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge thinkfan

References

Summary

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