How To Install npth on CentOS 8

npth is The New GNU Portable Threads library The New GNU Portable Threads library

Introduction

In this tutorial we learn how to install npth on CentOS 8.

What is npth

nPth is a non-preemptive threads implementation using an API very similar to the one known from GNU Pth. It has been designed as a replacement of GNU Pth for non-ancient operating systems. In contrast to GNU Pth is is based on the system’s standard threads implementation. Thus nPth allows the use of libraries which are not compatible to GNU Pth. npth 1.5 4.el8 i686 27 k npth-1.5-4.el8.src.rpm baseos The New GNU Portable Threads library http LGPLv2+ nPth is a non-preemptive threads implementation using an API very similar to the one known from GNU Pth. It has been designed as a replacement of GNU Pth for non-ancient operating systems. In contrast to GNU Pth is is based on the system’s standard threads implementation. Thus nPth allows the use of libraries which are not compatible to GNU Pth.

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

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

sudo dnf -y install npth

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

sudo yum -y install npth

How To Uninstall npth on CentOS 8

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

sudo dnf remove npth

npth Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/1fdf4ad239c5c2439a39d7be3174f77858d4e7
/usr/lib64/libnpth.so.0
/usr/lib64/libnpth.so.0.1.1
/usr/share/licenses/npth
/usr/share/licenses/npth/COPYING.LIB
/usr/lib/.build-id
/usr/lib/.build-id/de
/usr/lib/.build-id/de/839a54d6e9e97dab60b1b1d8ff21d5271550a4
/usr/lib/libnpth.so.0
/usr/lib/libnpth.so.0.1.1
/usr/share/licenses/npth
/usr/share/licenses/npth/COPYING.LIB

References

Summary

In this tutorial we learn how to install npth on CentOS 8 using yum and dnf.