How To Install web-assets-filesystem on Rocky Linux 8

In this tutorial we learn how to install web-assets-filesystem on Rocky Linux 8. web-assets-filesystem is The basic directory layout for Web Assets

Introduction

In this tutorial we learn how to install web-assets-filesystem on Rocky Linux 8.

What is web-assets-filesystem

The basic directory layout for Web Assets.

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

Install web-assets-filesystem 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 web-assets-filesystem using dnf by running the following command:

sudo dnf -y install web-assets-filesystem

Install web-assets-filesystem 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 web-assets-filesystem using yum by running the following command:

sudo yum -y install web-assets-filesystem

How To Uninstall web-assets-filesystem on Rocky Linux 8

To uninstall only the web-assets-filesystem package we can use the following command:

sudo dnf remove web-assets-filesystem

web-assets-filesystem Package Contents on Rocky Linux 8

/usr/share/javascript
/usr/share/web-assets
/usr/share/web-assets/fonts
/usr/share/web-assets/javascript
/usr/share/web-assets/js

References

Summary

In this tutorial we learn how to install web-assets-filesystem on Rocky Linux 8 using yum and dnf.