How To Install ustr on Rocky Linux 8

In this tutorial we learn how to install ustr on Rocky Linux 8. ustr is String library, very low memory overhead, simple to import

Introduction

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

What is ustr

Micro string library, very low overhead from plain strdup() (Ave. 44% for 0-20B strings). Very easy to use in existing C code. At it’s simplest you can just include a single header file into your .c and start using it. This package also distributes pre-built shared libraries.

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

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

sudo dnf -y install ustr

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

sudo yum -y install ustr

How To Uninstall ustr on Rocky Linux 8

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

sudo dnf remove ustr

ustr Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/1edd1c759d3c630353cb0b17c32530bce5339b
/usr/lib/libustr-1.0.so.1
/usr/lib/libustr-1.0.so.1.0.4
/usr/share/doc/ustr
/usr/share/doc/ustr/ChangeLog
/usr/share/doc/ustr/NEWS
/usr/share/doc/ustr/README
/usr/share/licenses/ustr
/usr/share/licenses/ustr/LICENSE
/usr/share/licenses/ustr/LICENSE_BSD
/usr/share/licenses/ustr/LICENSE_LGPL
/usr/share/licenses/ustr/LICENSE_MIT
/usr/lib/.build-id
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/ca47bb1bb6b5d6452faa84cdde0e0f1cfaf164
/usr/lib64/libustr-1.0.so.1
/usr/lib64/libustr-1.0.so.1.0.4
/usr/share/doc/ustr
/usr/share/doc/ustr/ChangeLog
/usr/share/doc/ustr/NEWS
/usr/share/doc/ustr/README
/usr/share/licenses/ustr
/usr/share/licenses/ustr/LICENSE
/usr/share/licenses/ustr/LICENSE_BSD
/usr/share/licenses/ustr/LICENSE_LGPL
/usr/share/licenses/ustr/LICENSE_MIT

References

Summary

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