How To Install ustr on CentOS 8

ustr is String library, very low memory overhead, simple to import String library, very low memory overhead, simple to import

Introduction

In this tutorial we learn how to install ustr on CentOS 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. ustr 1.0.4 26.el8 x86_64 103 k ustr-1.0.4-26.el8.src.rpm powertools String library, very low memory overhead, simple to import http MIT or LGPLv2+ or BSD 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ustr.

Install ustr on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install ustr

Install ustr on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove ustr

ustr Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/9dbf6e18603eabe95fad927abc79aaad83c829
/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/9a
/usr/lib/.build-id/9a/0fcebcb62f3fa107ae376b068e86e5a62aabc8
/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 CentOS 8 using yum and dnf.