How To Install log4c on Fedora 34
Introduction
In this tutorial we learn how to install log4c
on Fedora 34.
What is log4c
Log4c is a C language library for flexible logging to files, syslog and other destinations. It is modeled after the Log for Java library (log4j), staying as close to their API as is reasonable. log4c 1.2.4 22.fc34 x86_64 59 k log4c-1.2.4-22.fc34.src.rpm fedora Library for logging application messages http LGPLv2+ Log4c is a C language library for flexible logging to files, syslog and other destinations. It is modeled after the Log for Java library (log4j), staying as close to their API as is reasonable.
We can use yum
or dnf
to install log4c
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install log4c.
Install log4c 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 log4c
using dnf
by running the following command:
sudo dnf -y install log4c
Install log4c 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 log4c
using yum
by running the following command:
sudo yum -y install log4c
How To Uninstall log4c on Fedora 34
To uninstall only the log4c
package we can use the following command:
sudo dnf remove log4c
log4c Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/6364ef10c697f7434c2cbde0dc1281896a9acc
/usr/lib/liblog4c.so.3
/usr/lib/liblog4c.so.3.3.1
/usr/share/doc/log4c
/usr/share/doc/log4c/AUTHORS
/usr/share/doc/log4c/COPYING
/usr/share/doc/log4c/ChangeLog
/usr/share/doc/log4c/NEWS
/usr/share/doc/log4c/README
/usr/share/doc/log4c/log4crc.sample
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/c1bbd4c8007bdd868e18d9e8f7022f393c98b1
/usr/lib64/liblog4c.so.3
/usr/lib64/liblog4c.so.3.3.1
/usr/share/doc/log4c
/usr/share/doc/log4c/AUTHORS
/usr/share/doc/log4c/COPYING
/usr/share/doc/log4c/ChangeLog
/usr/share/doc/log4c/NEWS
/usr/share/doc/log4c/README
/usr/share/doc/log4c/log4crc.sample
References
- [log4c website](http://log4c.sourceforge.net/ http://log4c.sourceforge.net/)
Summary
In this tutorial we learn how to install log4c
on Fedora 34 using yum and dnf.