Ways to Uninstall and Install hd-idle Ubuntu 22.04

Updated: September 3, 2022

hd-idle is a utility program for spinning-down external disks after a period of idle time. Since most external IDE disk enclosures don’t support setting the IDE idle timer, a program like hd-idle is required to spin down idle disks automatically. In this tutorial, I will show you how to install hd-idle on Ubuntu 22.04.

Prerequisites

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install hd-idle on Ubuntu 22.04

Install hd-idle Ubuntu 22.04

hd-idle is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install hd-idle using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get hd-idle on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install hd-idle Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install hd-idle

Install hd-idle using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt install aptitude

After that, you can now install hd-idle by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install hd-idle Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install hd-idle

Uninstall hd-idle on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a hd-idle, can be easily uninstalled by anyone.

If you installed hd-idle using APT or Aptitude, you could uninstall hd-idle on Ubuntu by running this command

sudo apt remove --auto-remove hd-idle

You can also execute this command if you want to uninstall hd-idle and remove its data and dependencies:

sudo apt autoremove --purge hd-idle

Conclusion

In this guide, I showed you ways to install hd-idle on Ubuntu 22.04 and some ways to uninstall hd-idle too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.