How To Install detox on Ubuntu 20.04

In this tutorial we learn how to install detox on Ubuntu 20.04. detox is replace problematic characters in filenames

Introduction

In this tutorial we learn how to install detox on Ubuntu 20.04.

What is detox

detox is:

detox is a utility designed to clean up filenames. It replaces difficult to work with characters, such as spaces, with standard equivalents. It will also clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters in them.

Features:

  • Removal or replacement of upper ASCII Latin-1 (ISO 8859-1) characters;
  • Removal or replacement of UTF-8 encoded Unicode characters;
  • Removal or replacement of spaces and other potentially tricky characters;
  • Trimming of excessive “_” and “-“s;
  • Directory recursion, dry runs, verbose listings.

It is designed with safety in mind. It won’t overwrite a file that already exists, and it doesn’t touch special files if not requested.

detox is useful to mass rename files automatically. As just one example, you can use detox to easily standardize lots of files, as MP3 or movies, downloaded or stored inside a directory.

This package provides detox and inline-detox commands. The inline-detox can be used in command lines, as a filter in shell procedures.

There are three methods to install detox 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 detox Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install detox

Install detox Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install detox using apt by running the following command:

sudo apt -y install detox

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

sudo aptitude -y install detox

How To Uninstall detox on Ubuntu 20.04

To uninstall only the detox package we can use the following command:

sudo apt-get remove detox

Uninstall detox And Its Dependencies

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

sudo apt-get -y autoremove detox

Remove detox Configurations and Data

To remove detox configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge detox

Remove detox configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge detox

References

Summary

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