How To Install nspr on CentOS 8

nspr is Netscape Portable Runtime Netscape Portable Runtime

Introduction

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

What is nspr

NSPR provides platform independence for non-GUI operating system facilities. These facilities include threads, thread synchronization, normal file and network I/O, interval timing and calendar time, basic memory management (malloc and free) and shared library linking. nspr 4.25.0 2.el8_2 x86_64 142 k nspr-4.25.0-2.el8_2.src.rpm appstream Netscape Portable Runtime http MPLv2.0 NSPR provides platform independence for non-GUI operating system facilities. These facilities include threads, thread synchronization, normal file and network I/O, interval timing and calendar time, basic memory management (malloc and free) and shared library linking.

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

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

sudo dnf -y install nspr

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

sudo yum -y install nspr

How To Uninstall nspr on CentOS 8

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

sudo dnf remove nspr

nspr Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/81ebd6b8dd40be99b620afd0defc06e83c708e
/usr/lib/.build-id/be
/usr/lib/.build-id/be/911a6b1165c491791061e53eb38940b37d4793
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/fdc5db994babf373a3b9164a6f7a2f225fb52b
/usr/lib/libnspr4.so
/usr/lib/libplc4.so
/usr/lib/libplds4.so
/usr/share/licenses/nspr
/usr/share/licenses/nspr/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/1995f32d0b71f341a9b38da69e868d5982b5ba
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/2a6ac35d6a72b21ca13baf2ea5e4b0c01d0e57
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/a1f9d2cf7f25ecd30b481bab487c000d1241a0
/usr/lib64/libnspr4.so
/usr/lib64/libplc4.so
/usr/lib64/libplds4.so
/usr/share/licenses/nspr
/usr/share/licenses/nspr/LICENSE

References

Summary

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