How To Install golang-gopkg-natefinch-lumberjack-2-devel on Fedora 36

In this tutorial we learn how to install golang-gopkg-natefinch-lumberjack-2-devel in Fedora 36. golang-gopkg-natefinch-lumberjack-2-devel is Rolling logger for Go

Introduction

In this tutorial we learn how to install golang-gopkg-natefinch-lumberjack-2-devel on Fedora 36.

What is golang-gopkg-natefinch-lumberjack-2-devel

Lumberjack is a Go package for writing logs to rolling files. Lumberjack is intended to be one part of a logging infrastructure. It is not an all-in-one solution, but instead is a pluggable component at the bottom of the logging stack that simply controls the files to which logs are written. Lumberjack plays well with any logging package that can write to an io.Writer, including the standard library’s log package. Lumberjack assumes that only one process is writing to the output files. Using the same lumberjack configuration from multiple processes on the same machine will result in improper behavior. This package contains the source code needed for building packages that reference the following Go import paths – gopkg.in/natefinch/lumberjack.v2

We can use yum or dnf to install golang-gopkg-natefinch-lumberjack-2-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-gopkg-natefinch-lumberjack-2-devel.

Install golang-gopkg-natefinch-lumberjack-2-devel 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 golang-gopkg-natefinch-lumberjack-2-devel using dnf by running the following command:

sudo dnf -y install golang-gopkg-natefinch-lumberjack-2-devel

Install golang-gopkg-natefinch-lumberjack-2-devel 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 golang-gopkg-natefinch-lumberjack-2-devel using yum by running the following command:

sudo yum -y install golang-gopkg-natefinch-lumberjack-2-devel

How To Uninstall golang-gopkg-natefinch-lumberjack-2-devel on Fedora 36

To uninstall only the golang-gopkg-natefinch-lumberjack-2-devel package we can use the following command:

sudo dnf remove golang-gopkg-natefinch-lumberjack-2-devel

golang-gopkg-natefinch-lumberjack-2-devel Package Contents on Fedora 36

/usr/share/doc/golang-gopkg-natefinch-lumberjack-2-devel
/usr/share/doc/golang-gopkg-natefinch-lumberjack-2-devel/README.md
/usr/share/gocode/src/gopkg.in
/usr/share/gocode/src/gopkg.in/natefinch
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/.goipath
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/README.md
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/chown.go
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/chown_linux.go
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/example_test.go
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/linux_test.go
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/lumberjack.go
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/lumberjack_test.go
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/rotate_test.go
/usr/share/gocode/src/gopkg.in/natefinch/lumberjack.v2/testing_test.go
/usr/share/licenses/golang-gopkg-natefinch-lumberjack-2-devel
/usr/share/licenses/golang-gopkg-natefinch-lumberjack-2-devel/LICENSE

References

Summary

In this tutorial we learn how to install golang-gopkg-natefinch-lumberjack-2-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).