How To Install ruby-haml-magic-translations on Debian 9

In this tutorial we learn how to install ruby-haml-magic-translations on Debian 9. ruby-haml-magic-translations is internationalization library for Haml templates

Introduction

In this tutorial we learn how to install ruby-haml-magic-translations on Debian 9.

What is ruby-haml-magic-translations

ruby-haml-magic-translations is:

Haml::MagicTranslations provides “magical translations” for the Haml templating system. Texts in templates can be automatically internationalized using either the GetText, FastGettext or I18n libraries. It support translations of ‘raw’ text, Markdown and even strings in JavaScript.

Haml::MagicTranslations can also extract translatable strings from templates and merge them with existing translations, either manually or by the provided Rake task.

There are three methods to install ruby-haml-magic-translations on Debian 9. 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-haml-magic-translations 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-haml-magic-translations using apt-get by running the following command:

sudo apt-get -y install ruby-haml-magic-translations

Install ruby-haml-magic-translations Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-haml-magic-translations

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

sudo aptitude -y install ruby-haml-magic-translations

How To Uninstall ruby-haml-magic-translations on Debian 9

To uninstall only the ruby-haml-magic-translations package we can use the following command:

sudo apt-get remove ruby-haml-magic-translations

Uninstall ruby-haml-magic-translations And Its Dependencies

To uninstall ruby-haml-magic-translations and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove ruby-haml-magic-translations

Remove ruby-haml-magic-translations Configurations and Data

To remove ruby-haml-magic-translations configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge ruby-haml-magic-translations

Remove ruby-haml-magic-translations configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-haml-magic-translations

Dependencies

ruby-haml-magic-translations have the following dependencies:

References

Summary

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