Ways to Install or Uninstall util-linux on Ubuntu 22.04

Updated: October 26, 2022

This package contains a number of important utilities, most of which are oriented towards maintenance of your system. Some of the more important utilities included in this package allow you to view kernel messages, create new filesystems, view block device information, interface with real time clock, etc. I will show you how to install util-linux on Ubuntu 22.04 in this guide.

Requirements

  • Operating system: util-linux needs Ubuntu 22.04 to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install util-linux on Ubuntu 22.04

Install util-linux Ubuntu 22.04

util-linux 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 you believe is simple and easy to follow.

Install util-linux using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to install util-linux on your Ubuntu 22.04.

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

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install util-linux Ubuntu by executing this command in the terminal.

sudo apt-get -y install util-linux

Install util-linux 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-get -y install aptitude

Then, you can now install util-linux, just following these steps:

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. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install util-linux Ubuntu by executing this command in the terminal.

sudo aptitude install util-linux

Uninstall util-linux on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a util-linux.

You can uninstall util-linux Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove util-linux

To uninstall util-linux and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge util-linux

Summary

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