How To Install log4cxx on Fedora 36
Introduction
In this tutorial we learn how to install log4cxx
on Fedora 36.
What is log4cxx
title: “How To Install log4cxx on Fedora 36”
Log4cxx is a popular logging package written in C++. One of its distinctive features is the notion of inheritance in loggers. Using a logger hierarchy it is possible to control which log statements are output at arbitrary granularity. This helps reduce the volume of logged output and minimize the cost of logging.
linkTitle: “log4cxx”
type: “docs”
We can use yum
or dnf
to install log4cxx
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install log4cxx.
description: “In this tutorial we learn how to install log4cxx in Fedora 36. log4cxx is A port to C++ of the Log4j project”
date: “2022-08-17”
Install log4cxx on Fedora 36 Using dnf
lastmod: “2022-08-17”
#image: /images/fedora/36/log4cxx-featured.png
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
## Introduction
After updating yum database, We can install log4cxx
using dnf
by running the following command:
In this tutorial we learn how to install log4cxx
on Fedora 36.
### What is `log4cxx`
sudo dnf -y install log4cxx
Log4cxx is a popular logging package written in C++. One of its distinctive features is the notion of inheritance in loggers. Using a logger hierarchy it is possible to control which log statements are output at arbitrary granularity. This helps reduce the volume of logged output and minimize the cost of logging.
Install log4cxx on Fedora 36 Using yum
We can use yum
or dnf
to install log4cxx
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install log4cxx.
Update yum database with yum
using the following command.
## Install log4cxx on Fedora 36 Using dnf
sudo yum makecache --refresh
Update yum database with dnf
using the following command.
After updating yum database, We can install log4cxx
using yum
by running the following command:
```bash
sudo dnf makecache --refresh
sudo yum -y install log4cxx
## How To Uninstall log4cxx on Fedora 36
After updating yum database, We can install `log4cxx` using `dnf` by running the following command:
To uninstall only the `log4cxx` package we can use the following command:
```bash
```bash
sudo dnf remove log4cxx
sudo dnf -y install log4cxx
## log4cxx Package Contents on Fedora 36
```bash
## Install log4cxx on Fedora 36 Using yum
Update yum database with `yum` using the following command.
```bash
sudo yum makecache --refresh
After updating yum database, We can install log4cxx
using yum
by running the following command:
sudo yum -y install log4cxx
How To Uninstall log4cxx on Fedora 36
To uninstall only the log4cxx
package we can use the following command:
sudo dnf remove log4cxx
log4cxx Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/9638e18b511f314f78cd8541a4af2aea9c670d
/usr/lib/liblog4cxx.so.11
/usr/lib/liblog4cxx.so.11.0.0
/usr/share/doc/log4cxx
/usr/share/doc/log4cxx/KEYS
/usr/share/doc/log4cxx/NOTICE
/usr/share/licenses/log4cxx
/usr/share/licenses/log4cxx/LICENSE
References
Summary
In this tutorial we learn how to install log4cxx
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
/usr/lib/.build-id /usr/lib/.build-id/52 /usr/lib/.build-id/52/d097a9f9994b06c8e40c7d4019ae2230ac31f7 /usr/lib64/liblog4cxx.so.11 /usr/lib64/liblog4cxx.so.11.0.0 /usr/share/doc/log4cxx /usr/share/doc/log4cxx/KEYS /usr/share/doc/log4cxx/NOTICE /usr/share/licenses/log4cxx /usr/share/licenses/log4cxx/LICENSE
## References
* [log4cxx website](http://logging.apache.org/log4cxx/index.html)
## Summary
In this tutorial we learn how to install `log4cxx` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).