How To Install log4cpp on Fedora 36

In this tutorial we learn how to install log4cpp in Fedora 36. log4cpp is C++ logging library

Introduction

In this tutorial we learn how to install log4cpp on Fedora 36.

What is log4cpp

A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations. It is modeled after the Log for Java library (http

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

Install log4cpp on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install log4cpp

Install log4cpp on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install log4cpp

How To Uninstall log4cpp on Fedora 36

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

sudo dnf remove log4cpp

log4cpp Package Contents on Fedora 36

---
title: "How To Install log4cpp on Fedora 36"
linkTitle: "log4cpp"
type: "docs"
description: "In this tutorial we learn how to install log4cpp in Fedora 36. log4cpp is C++ logging library"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/log4cpp-featured.png
---

## Introduction

In this tutorial we learn how to install `log4cpp` on Fedora 36.

### What is `log4cpp`

> A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations. It is modeled after the Log for Java library (http  

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

## Install log4cpp on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

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

sudo dnf -y install log4cpp

Install log4cpp on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install log4cpp

How To Uninstall log4cpp on Fedora 36

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

sudo dnf remove log4cpp

log4cpp Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/faae7f195b0680e7b51a3409d1f429df44ceae
/usr/lib64/liblog4cpp.so.5
/usr/lib64/liblog4cpp.so.5.0.6
/usr/share/doc/log4cpp
/usr/share/doc/log4cpp/COPYING
/usr/share/doc/log4cpp/ChangeLog

References

Summary

In this tutorial we learn how to install log4cpp on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).

/usr/lib/.build-id /usr/lib/.build-id/44 /usr/lib/.build-id/44/64fea4a09a3c9133a23b84fdce7ab3261b34c1 /usr/lib/liblog4cpp.so.5 /usr/lib/liblog4cpp.so.5.0.6 /usr/share/doc/log4cpp /usr/share/doc/log4cpp/COPYING /usr/share/doc/log4cpp/ChangeLog


## References

* [log4cpp website](http://sourceforge.net/projects/log4cpp/)

## Summary

In this tutorial we learn how to install `log4cpp` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).