How To Install ruby-unidecode on Debian 12

Learn how to install ruby-unidecode on Debian 12 with this tutorial. ruby-unidecode is Transliteratively convert UTF-8 text to US-ASCII

Introduction

In this tutorial we learn how to install ruby-unidecode on Debian 12.

What is ruby-unidecode

ruby-unidecode is:

unidecode is a Ruby library for transliterating converting UTF-8 strings to plain ASCII representations.

This gem is a Ruby port of Perl library Text::Unidecode. The same caveats, notes, and constraints listed there apply here though the Ruby implementation here is slightly different, specifically the addition of String#to_ascii.

There are three methods to install ruby-unidecode on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-unidecode Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install ruby-unidecode

Install ruby-unidecode Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-unidecode

Install ruby-unidecode 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-unidecode using aptitude by running the following command:

sudo aptitude -y install ruby-unidecode

How To Uninstall ruby-unidecode on Debian 12

To uninstall only the ruby-unidecode package we can use the following command:

sudo apt-get remove ruby-unidecode

Uninstall ruby-unidecode And Its Dependencies

To uninstall ruby-unidecode and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove ruby-unidecode

Remove ruby-unidecode Configurations and Data

To remove ruby-unidecode configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge ruby-unidecode

Remove ruby-unidecode configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-unidecode

Dependencies

ruby-unidecode have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-unidecode package on Debian 12 using different package management tools: apt, apt-get and aptitude.