How To Install ustr.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ustr.x86_64 in Amazon Linux 2. ustr.x86_64 is String library, very low memory overhead, simple to import

Introduction

In this tutorial we learn how to install ustr.x86_64 on Amazon Linux 2.

What is ustr.x86_64

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 to install ustr.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ustr.x86_64.

Install ustr.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ustr.x86_64 using yum by running the following command:

sudo yum -y install ustr.x86_64

How To Uninstall ustr.x86_64 on Amazon Linux 2

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

sudo yum remove ustr.x86_64

ustr.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libustr-1.0.so.1
/usr/lib64/libustr-1.0.so.1.0.4
/usr/share/doc/ustr-1.0.4
/usr/share/doc/ustr-1.0.4/ChangeLog
/usr/share/doc/ustr-1.0.4/LICENSE
/usr/share/doc/ustr-1.0.4/LICENSE_BSD
/usr/share/doc/ustr-1.0.4/LICENSE_LGPL
/usr/share/doc/ustr-1.0.4/LICENSE_MIT
/usr/share/doc/ustr-1.0.4/NEWS
/usr/share/doc/ustr-1.0.4/README

References

Summary

In this tutorial we learn how to install ustr.x86_64 on Amazon Linux 2 using yum.