How To Install libnatpmp on Fedora 34

libnatpmp is Library of The NAT Port Mapping Protocol (NAT-PMP) Library of The NAT Port Mapping Protocol (NAT-PMP)

Introduction

In this tutorial we learn how to install libnatpmp on Fedora 34.

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. libnatpmp 20150609 13.fc34 x86_64 19 k libnatpmp-20150609-13.fc34.src.rpm fedora Library of The NAT Port Mapping Protocol (NAT-PMP) http LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libnatpmp.

Install libnatpmp on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install libnatpmp

Install libnatpmp on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove libnatpmp

libnatpmp Package Contents on Fedora 34

/usr/bin/natpmpc
/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/fe30cd03f230296fb2c19cfd4c2d2bcf2a9681
/usr/lib/.build-id/96
/usr/lib/.build-id/96/7e924b529e9e65c9f5ca5addf5ac4a4d2307ae
/usr/lib64/libnatpmp.so.1
/usr/share/licenses/libnatpmp
/usr/share/licenses/libnatpmp/LICENSE
/usr/bin/natpmpc
/usr/lib/.build-id
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/f8f7b42b54c6826fc4c6e32fbba75eff6988dd
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/82dc6b395e072e61f73709be28d1e81c4e597d
/usr/lib/libnatpmp.so.1
/usr/share/licenses/libnatpmp
/usr/share/licenses/libnatpmp/LICENSE

References

Summary

In this tutorial we learn how to install libnatpmp on Fedora 34 using yum and dnf.