How To Install golang-github-pkg-diff-devel on Fedora 36

In this tutorial we learn how to install golang-github-pkg-diff-devel in Fedora 36. golang-github-pkg-diff-devel is Create, modify, and print diffs

Introduction

In this tutorial we learn how to install golang-github-pkg-diff-devel on Fedora 36.

What is golang-github-pkg-diff-devel

Module github.com/pkg/diff can be used to create, modify, and print diffs. The top level package, diff, contains convenience functions for the most common uses. The subpackages provide very fine-grained control over every aspect – myers – edit – ctxt – write This package contains the source code needed for building packages that reference the following Go import paths – github.com/pkg/diff

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

Install golang-github-pkg-diff-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-github-pkg-diff-devel using dnf by running the following command:

sudo dnf -y install golang-github-pkg-diff-devel

Install golang-github-pkg-diff-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-github-pkg-diff-devel using yum by running the following command:

sudo yum -y install golang-github-pkg-diff-devel

How To Uninstall golang-github-pkg-diff-devel on Fedora 36

To uninstall only the golang-github-pkg-diff-devel package we can use the following command:

sudo dnf remove golang-github-pkg-diff-devel

golang-github-pkg-diff-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-pkg-diff-devel
/usr/share/doc/golang-github-pkg-diff-devel/readme.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/pkg
/usr/share/gocode/src/github.com/pkg/diff
/usr/share/gocode/src/github.com/pkg/diff/.goipath
/usr/share/gocode/src/github.com/pkg/diff/bench_test.go
/usr/share/gocode/src/github.com/pkg/diff/ctxt
/usr/share/gocode/src/github.com/pkg/diff/ctxt/size.go
/usr/share/gocode/src/github.com/pkg/diff/ctxt/todo.go
/usr/share/gocode/src/github.com/pkg/diff/diff.go
/usr/share/gocode/src/github.com/pkg/diff/edit
/usr/share/gocode/src/github.com/pkg/diff/edit/edit.go
/usr/share/gocode/src/github.com/pkg/diff/edit/op_string.go
/usr/share/gocode/src/github.com/pkg/diff/example_test.go
/usr/share/gocode/src/github.com/pkg/diff/fuzz.go
/usr/share/gocode/src/github.com/pkg/diff/go.mod
/usr/share/gocode/src/github.com/pkg/diff/intern
/usr/share/gocode/src/github.com/pkg/diff/intern/intern.go
/usr/share/gocode/src/github.com/pkg/diff/myers
/usr/share/gocode/src/github.com/pkg/diff/myers/myers.go
/usr/share/gocode/src/github.com/pkg/diff/myers/myers_test.go
/usr/share/gocode/src/github.com/pkg/diff/readme.md
/usr/share/gocode/src/github.com/pkg/diff/todo.go
/usr/share/gocode/src/github.com/pkg/diff/write
/usr/share/gocode/src/github.com/pkg/diff/write/option.go
/usr/share/gocode/src/github.com/pkg/diff/write/todo.go
/usr/share/gocode/src/github.com/pkg/diff/write/unified.go
/usr/share/gocode/src/github.com/pkg/diff/write/unified_test.go
/usr/share/licenses/golang-github-pkg-diff-devel
/usr/share/licenses/golang-github-pkg-diff-devel/LICENSE

References

Summary

In this tutorial we learn how to install golang-github-pkg-diff-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).