How To Install libnatpmp on Rocky Linux 8

In this tutorial we learn how to install libnatpmp on Rocky Linux 8. libnatpmp is Library of The NAT Port Mapping Protocol (NAT-PMP)

Introduction

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

What is libnatpmp

libnatpmp is an attempt to make a portable and fully compliant implementation of the protocol for the client side. It is based on non blocking sockets and all calls of the API are asynchronous. It is therefore very easy to integrate the NAT-PMP code to any event driven code.

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

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

sudo dnf -y install libnatpmp

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

sudo yum -y install libnatpmp

How To Uninstall libnatpmp on Rocky Linux 8

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

sudo dnf remove libnatpmp

libnatpmp Package Contents on Rocky Linux 8

/usr/bin/natpmpc
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/b091ba185aea19d4ed53dd501e38348a8d0336
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/77dc185c48092e1482b33fd43a27f81e15710a
/usr/lib64/libnatpmp.so.1
/usr/share/licenses/libnatpmp
/usr/share/licenses/libnatpmp/LICENSE

References

Summary

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