How To Install libphonenumber on Fedora 34

libphonenumber is Library to handle international phone numbers Library to handle international phone numbers

Introduction

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

What is libphonenumber

Google’s common C++ library for parsing, formatting, storing and validating international phone numbers. libphonenumber 8.12.11 5.fc34 x86_64 2.2 M libphonenumber-8.12.11-5.fc34.src.rpm fedora Library to handle international phone numbers https ASL 2.0 and BSD and MIT Google’s common C++ library for parsing, formatting, storing and validating international phone numbers.

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

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

sudo dnf -y install libphonenumber

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

sudo yum -y install libphonenumber

How To Uninstall libphonenumber on Fedora 34

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

sudo dnf remove libphonenumber

libphonenumber Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/abeaedd3412f9f4142e8347cd11ff8bd82f44e
/usr/lib/.build-id/56
/usr/lib/.build-id/56/3ff95e5d8e29cb52214574be67bea9081bc6f1
/usr/lib/libgeocoding.so.8
/usr/lib/libgeocoding.so.8.12
/usr/lib/libphonenumber.so.8
/usr/lib/libphonenumber.so.8.12
/usr/share/doc/libphonenumber
/usr/share/doc/libphonenumber/README
/usr/share/licenses/libphonenumber
/usr/share/licenses/libphonenumber/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/5d79e928f6e1ee43784be056b2f532c36b0175
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/2090c7f1c1b089f9052ed654a3a89495347721
/usr/lib64/libgeocoding.so.8
/usr/lib64/libgeocoding.so.8.12
/usr/lib64/libphonenumber.so.8
/usr/lib64/libphonenumber.so.8.12
/usr/share/doc/libphonenumber
/usr/share/doc/libphonenumber/README
/usr/share/licenses/libphonenumber
/usr/share/licenses/libphonenumber/LICENSE

References

Summary

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