How To Install rubygem-log4r on Fedora 36

In this tutorial we learn how to install rubygem-log4r in Fedora 36. rubygem-log4r is Log4r, logging framework for ruby

Introduction

In this tutorial we learn how to install rubygem-log4r on Fedora 36.

What is rubygem-log4r

Log4r is a comprehensive and flexible logging library for use in Ruby programs. It features a heirarchical logging system of any number of levels, custom level names, multiple output destinations per log event, custom formatting, and more.

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

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

sudo dnf -y install rubygem-log4r

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

sudo yum -y install rubygem-log4r

How To Uninstall rubygem-log4r on Fedora 36

To uninstall only the rubygem-log4r package we can use the following command:

sudo dnf remove rubygem-log4r

rubygem-log4r Package Contents on Fedora 36

/usr/share/gems/gems/log4r-1.1.10
/usr/share/gems/gems/log4r-1.1.10/LICENSE
/usr/share/gems/gems/log4r-1.1.10/LICENSE.LGPLv3
/usr/share/gems/gems/log4r-1.1.10/lib
/usr/share/gems/gems/log4r-1.1.10/lib/log4r
/usr/share/gems/gems/log4r-1.1.10/lib/log4r.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/GDC.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/MDC.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/NDC.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/base.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/config.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/configurator.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/formatter
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/formatter/formatter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/formatter/log4jxmlformatter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/formatter/patternformatter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/lib
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/lib/drbloader.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/lib/xmlloader.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/logevent.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/logger.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/loggerfactory.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/logserver.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/consoleoutputters.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/datefileoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/emailoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/fileoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/iooutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/outputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/outputterfactory.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/remoteoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/rollingfileoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/scribeoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/staticoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/syslogoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/outputter/udpoutputter.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/repository.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/staticlogger.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/version.rb
/usr/share/gems/gems/log4r-1.1.10/lib/log4r/yamlconfigurator.rb
/usr/share/gems/specifications/log4r-1.1.10.gemspec

References

Summary

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