How To Install log4cxx on Fedora 34
Introduction
In this tutorial we learn how to install log4cxx
on Fedora 34.
What is 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. log4cxx 0.11.0 2.fc34 x86_64 479 k log4cxx-0.11.0-2.fc34.src.rpm fedora A port to C++ of the Log4j project http ASL 2.0 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.
We can use yum
or dnf
to install log4cxx
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install log4cxx.
Install log4cxx 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 log4cxx
using dnf
by running the following command:
sudo dnf -y install log4cxx
Install log4cxx 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 log4cxx
using yum
by running the following command:
sudo yum -y install log4cxx
How To Uninstall log4cxx on Fedora 34
To uninstall only the log4cxx
package we can use the following command:
sudo dnf remove log4cxx
log4cxx Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/62c72da06b8b78b1b3460de4c578d18e1f2f04
/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
/usr/lib/.build-id
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/e7fe614203e7879ebb849894b26aa49be8733a
/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
- [log4cxx website](http://logging.apache.org/log4cxx/index.html http://logging.apache.org/log4cxx/index.html)
Summary
In this tutorial we learn how to install log4cxx
on Fedora 34 using yum and dnf.