How To Install android-tools-fsutils on Ubuntu 18.04

In this tutorial we learn how to install android-tools-fsutils on Ubuntu 18.04. android-tools-fsutils is Android ext4 utilities with sparse support

Introduction

In this tutorial we learn how to install android-tools-fsutils on Ubuntu 18.04.

What is android-tools-fsutils

android-tools-fsutils is:

Android images (.img) are typically ext4 filesystems in a special sparse file format. These are tools to help make that format.

This package provides the utilities to deal with Android sparse ext4 images.

There are three methods to install android-tools-fsutils on Ubuntu 18.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 android-tools-fsutils Using apt-get

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

sudo apt-get update

After updating apt database, We can install android-tools-fsutils using apt-get by running the following command:

sudo apt-get -y install android-tools-fsutils

Install android-tools-fsutils Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install android-tools-fsutils using apt by running the following command:

sudo apt -y install android-tools-fsutils

Install android-tools-fsutils 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 android-tools-fsutils using aptitude by running the following command:

sudo aptitude -y install android-tools-fsutils

How To Uninstall android-tools-fsutils on Ubuntu 18.04

To uninstall only the android-tools-fsutils package we can use the following command:

sudo apt-get remove android-tools-fsutils

Uninstall android-tools-fsutils And Its Dependencies

To uninstall android-tools-fsutils and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove android-tools-fsutils

Remove android-tools-fsutils Configurations and Data

To remove android-tools-fsutils configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge android-tools-fsutils

Remove android-tools-fsutils configuration, data, and all of its dependencies

We can use the following command to remove android-tools-fsutils configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge android-tools-fsutils

References

Summary

In this tutorial we learn how to install android-tools-fsutils package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.