Ways to Uninstall or Install hdparm Ubuntu 22.04

Updated: September 6, 2022

Get/set device parameters for Linux SATA/IDE drives. Provides a command line interface to various kernel interfaces supported by the Linux SATA/PATA/SAS “libata” subsystem and the older IDE driver subsystem. Many newer (2008 and later) USB drive enclosures now also support “SAT” (SCSI-ATA Command Translation) and therefore may also work with hdparm. I will show you how to install hdparm on Ubuntu 22.04 in this guide.

Prerequisites

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install hdparm on Ubuntu 22.04

Install hdparm Ubuntu 22.04

hdparm 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 hdparm using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install hdparm on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting 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 -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install hdparm Ubuntu by executing this command in the terminal.

sudo apt -y install hdparm

Install hdparm using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt-get install aptitude

Then, you can now install hdparm, just following these steps:

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

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install hdparm Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install hdparm

Uninstall hdparm 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 hdparm, can be easily uninstalled by anyone.

If you installed hdparm using APT or Aptitude, you could uninstall hdparm on Ubuntu by executing this command

sudo apt remove --auto-remove hdparm

If you want to uninstall hdparm and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge hdparm

Summary

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