How To Install log4cplus on Fedora 34

log4cplus is Logging Framework for C++ Logging Framework for C++

Introduction

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

What is log4cplus

log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API. log4cplus 2.0.5 13.fc34 x86_64 347 k log4cplus-2.0.5-13.fc34.src.rpm fedora Logging Framework for C++ http ASL 2.0 log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modeled after the Java log4j API.

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

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

sudo dnf -y install log4cplus

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

sudo yum -y install log4cplus

How To Uninstall log4cplus on Fedora 34

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

sudo dnf remove log4cplus

log4cplus Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/c7266737123d3ec0da3d5de58af1e20e299279
/usr/lib/.build-id/88
/usr/lib/.build-id/88/219e506929e09f8183f6a20150092689018743
/usr/lib/liblog4cplus-2.0.so.3
/usr/lib/liblog4cplus-2.0.so.3.4.5
/usr/lib/liblog4cplusU-2.0.so.3
/usr/lib/liblog4cplusU-2.0.so.3.4.5
/usr/share/doc/log4cplus
/usr/share/doc/log4cplus/ChangeLog
/usr/share/doc/log4cplus/LICENSE
/usr/share/doc/log4cplus/README.md
/usr/lib/.build-id
/usr/lib/.build-id/67
/usr/lib/.build-id/67/8def17ca58921d5d5e0d1fffafd7e86cc52dfd
/usr/lib/.build-id/71
/usr/lib/.build-id/71/65d3eae8c8cc9167a741e8fd9bf6b25f67881a
/usr/lib64/liblog4cplus-2.0.so.3
/usr/lib64/liblog4cplus-2.0.so.3.4.5
/usr/lib64/liblog4cplusU-2.0.so.3
/usr/lib64/liblog4cplusU-2.0.so.3.4.5
/usr/share/doc/log4cplus
/usr/share/doc/log4cplus/ChangeLog
/usr/share/doc/log4cplus/LICENSE
/usr/share/doc/log4cplus/README.md

References

Summary

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