How To Install libsass on Rocky Linux 8

In this tutorial we learn how to install libsass on Rocky Linux 8. libsass is C/C++ port of the Sass CSS precompiler

Introduction

In this tutorial we learn how to install libsass on Rocky Linux 8.

What is libsass

Libsass is a C/C++ port of the Sass CSS precompiler. The original version was written in Ruby, but this version is meant for efficiency and portability. This library strives to be light, simple, and easy to build and integrate with a variety of platforms and languages. Libsass is just a library, but if you want to RUN libsass, install the sassc package.

We can use yum or dnf to install libsass on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libsass.

Install libsass on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libsass using dnf by running the following command:

sudo dnf -y install libsass

Install libsass on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libsass using yum by running the following command:

sudo yum -y install libsass

How To Uninstall libsass on Rocky Linux 8

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

sudo dnf remove libsass

libsass Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/f036c3093bc9e62da2bdf5db0287a828f60ee2
/usr/lib64/libsass.so.0
/usr/lib64/libsass.so.0.0.9
/usr/share/doc/libsass
/usr/share/doc/libsass/Readme.md
/usr/share/doc/libsass/SECURITY.md
/usr/share/licenses/libsass
/usr/share/licenses/libsass/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/70bc66ce26190a2ae7b30d766afd650745e7c9
/usr/lib/libsass.so.0
/usr/lib/libsass.so.0.0.9
/usr/share/doc/libsass
/usr/share/doc/libsass/Readme.md
/usr/share/doc/libsass/SECURITY.md
/usr/share/licenses/libsass
/usr/share/licenses/libsass/LICENSE

References

Summary

In this tutorial we learn how to install libsass on Rocky Linux 8 using yum and dnf.