How To Install ruby-sass-rails on Debian 10

Learn how to install ruby-sass-rails on Debian 10 with this tutorial. ruby-sass-rails is Sass adapter for the Rails asset pipeline

Introduction

In this tutorial we learn how to install ruby-sass-rails on Debian 10.

What is ruby-sass-rails

ruby-sass-rails is:

This package integrates Sass into the Rails asset pipeline, i.e. you can write stylesheets using Sass and have them compiled into CSS before being sent to the clients.

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

sudo apt-get -y install ruby-sass-rails

Install ruby-sass-rails Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-sass-rails

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

sudo aptitude -y install ruby-sass-rails

How To Uninstall ruby-sass-rails on Debian 10

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

sudo apt-get remove ruby-sass-rails

Uninstall ruby-sass-rails And Its Dependencies

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

sudo apt-get -y autoremove ruby-sass-rails

Remove ruby-sass-rails Configurations and Data

To remove ruby-sass-rails configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge ruby-sass-rails

Remove ruby-sass-rails configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-sass-rails

Dependencies

ruby-sass-rails have the following dependencies:

References

Summary

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