How To Install hibernate on Debian 10
Introduction
In this tutorial we learn how to install hibernate
on Debian 10.
What is hibernate
hibernate is:
The hibernate script helps you in putting your computer to sleep, using one of the various methods available in the kernel.
Hibernate can take care of loading and unloading modules, provides various hacks needed to get some video cards to resume properly under X, can optionally restart networking and system services, and basically do whatever else you ask it. It can be extended by writing new “scriptlets” which run at different points during the suspend process.
Currently the script supports all suspend mechanisms available through the /sys/power/state interface (including ACPI suspend and the in-kernel software suspend), as well as TuxOnIce.
There are three methods to install hibernate
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install hibernate Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install hibernate
using apt-get
by running the following command:
sudo apt-get -y install hibernate
Install hibernate Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install hibernate
using apt
by running the following command:
sudo apt -y install hibernate
Install hibernate 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 hibernate
using aptitude
by running the following command:
sudo aptitude -y install hibernate
How To Uninstall hibernate on Debian 10
To uninstall only the hibernate
package we can use the following command:
sudo apt-get remove hibernate
Uninstall hibernate And Its Dependencies
To uninstall hibernate
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove hibernate
Remove hibernate Configurations and Data
To remove hibernate
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge hibernate
Remove hibernate configuration, data, and all of its dependencies
We can use the following command to remove hibernate
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge hibernate
Dependencies
hibernate have the following dependencies:
References
Summary
In this tutorial we learn how to install hibernate
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.