How To Install golang-github-pkg-diff on Fedora 36
Introduction
In this tutorial we learn how to install golang-github-pkg-diff
on Fedora 36.
What is golang-github-pkg-diff
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
We can use yum
or dnf
to install golang-github-pkg-diff
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.
Install golang-github-pkg-diff 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
using dnf
by running the following command:
sudo dnf -y install golang-github-pkg-diff
Install golang-github-pkg-diff 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
using yum
by running the following command:
sudo yum -y install golang-github-pkg-diff
How To Uninstall golang-github-pkg-diff on Fedora 36
To uninstall only the golang-github-pkg-diff
package we can use the following command:
sudo dnf remove golang-github-pkg-diff
golang-github-pkg-diff Package Contents on Fedora 36
References
Summary
In this tutorial we learn how to install golang-github-pkg-diff
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).