How To Install ruby-sassc on Ubuntu 22.04

In this tutorial we learn how to install ruby-sassc on Ubuntu 22.04. ruby-sassc is Ruby module to use libsass

Introduction

In this tutorial we learn how to install ruby-sassc on Ubuntu 22.04.

What is ruby-sassc

ruby-sassc is:

Sass is a pre-processing language for CSS.

This Ruby library uses libsass, a C/C++ port of the Sass engine, to compile SCSS or Sass syntax to CSS, with the speed of this engine and the ease of use of original Ruby Sass library.

There are three methods to install ruby-sassc on Ubuntu 22.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 ruby-sassc 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-sassc using apt-get by running the following command:

sudo apt-get -y install ruby-sassc

Install ruby-sassc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-sassc

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

sudo aptitude -y install ruby-sassc

How To Uninstall ruby-sassc on Ubuntu 22.04

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

sudo apt-get remove ruby-sassc

Uninstall ruby-sassc And Its Dependencies

To uninstall ruby-sassc and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove ruby-sassc

Remove ruby-sassc Configurations and Data

To remove ruby-sassc configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge ruby-sassc

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

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

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

References

Summary

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