How To Install libbsd on Fedora 34

libbsd is Library providing BSD-compatible functions for portability Library providing BSD-compatible functions for portability

Introduction

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

What is libbsd

libbsd provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project. libbsd 0.10.0 7.fc34 x86_64 106 k libbsd-0.10.0-7.fc34.src.rpm fedora Library providing BSD-compatible functions for portability http BSD and ISC and Copyright only and Public Domain libbsd provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.

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

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

sudo dnf -y install libbsd

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

sudo yum -y install libbsd

How To Uninstall libbsd on Fedora 34

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

sudo dnf remove libbsd

libbsd Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/61
/usr/lib/.build-id/61/0ecce65742d7f7e2b4ca70bec0dc5db594792e
/usr/lib/libbsd.so.0
/usr/lib/libbsd.so.0.10.0
/usr/share/doc/libbsd
/usr/share/doc/libbsd/ChangeLog
/usr/share/doc/libbsd/README
/usr/share/doc/libbsd/TODO
/usr/share/licenses/libbsd
/usr/share/licenses/libbsd/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/71
/usr/lib/.build-id/71/fe74e65c887ba9e8734d2fe33f5a75cf6b9677
/usr/lib64/libbsd.so.0
/usr/lib64/libbsd.so.0.10.0
/usr/share/doc/libbsd
/usr/share/doc/libbsd/ChangeLog
/usr/share/doc/libbsd/README
/usr/share/doc/libbsd/TODO
/usr/share/licenses/libbsd
/usr/share/licenses/libbsd/COPYING

References

Summary

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