How To Install exfat-utils on Ubuntu 20.04

In this tutorial we learn how to install exfat-utils on Ubuntu 20.04. exfat-utils is utilities to create, check, label and dump exFAT filesystem

Introduction

In this tutorial we learn how to install exfat-utils on Ubuntu 20.04.

What is exfat-utils

exfat-utils is:

Utilities to manage extended file allocation table filesystem. This package provides tools to create, check and label the filesystem. It contains

  • dumpexfat to dump properties of the filesystem
  • exfatfsck / fsck.exfat to report errors found on a exFAT filesystem
  • exfatlabel to label a exFAT filesystem
  • mkexfatfs / mkfs.exfat to create a exFAT filesystem.

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

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

sudo apt-get update

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

sudo apt-get -y install exfat-utils

Install exfat-utils Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install exfat-utils

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

sudo aptitude -y install exfat-utils

How To Uninstall exfat-utils on Ubuntu 20.04

To uninstall only the exfat-utils package we can use the following command:

sudo apt-get remove exfat-utils

Uninstall exfat-utils And Its Dependencies

To uninstall exfat-utils and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove exfat-utils

Remove exfat-utils Configurations and Data

To remove exfat-utils configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge exfat-utils

Remove exfat-utils configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge exfat-utils

References

Summary

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