How To Install golang-github-alecthomas-kong-hcl-2-devel on Fedora 36

In this tutorial we learn how to install golang-github-alecthomas-kong-hcl-2-devel in Fedora 36. golang-github-alecthomas-kong-hcl-2-devel is A Kong configuration loader for HCL

Introduction

In this tutorial we learn how to install golang-github-alecthomas-kong-hcl-2-devel on Fedora 36.

What is golang-github-alecthomas-kong-hcl-2-devel

This is version 2.x of this package which uses the HCL2 library. For most config files it should be a drop-in replacement, but for any codebases using konghcl.DecodeValue() you will need to update your Go structs to include HCL tags. This package contains the source code needed for building packages that reference the following Go import paths – github.com/alecthomas/kong-hcl/v2

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

Install golang-github-alecthomas-kong-hcl-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-github-alecthomas-kong-hcl-2-devel using dnf by running the following command:

sudo dnf -y install golang-github-alecthomas-kong-hcl-2-devel

Install golang-github-alecthomas-kong-hcl-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-github-alecthomas-kong-hcl-2-devel using yum by running the following command:

sudo yum -y install golang-github-alecthomas-kong-hcl-2-devel

How To Uninstall golang-github-alecthomas-kong-hcl-2-devel on Fedora 36

To uninstall only the golang-github-alecthomas-kong-hcl-2-devel package we can use the following command:

sudo dnf remove golang-github-alecthomas-kong-hcl-2-devel

golang-github-alecthomas-kong-hcl-2-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-alecthomas-kong-hcl-2-devel
/usr/share/doc/golang-github-alecthomas-kong-hcl-2-devel/README.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/alecthomas
/usr/share/gocode/src/github.com/alecthomas/kong-hcl
/usr/share/gocode/src/github.com/alecthomas/kong-hcl/v2
/usr/share/gocode/src/github.com/alecthomas/kong-hcl/v2/.goipath
/usr/share/gocode/src/github.com/alecthomas/kong-hcl/v2/README.md
/usr/share/gocode/src/github.com/alecthomas/kong-hcl/v2/dump.go
/usr/share/gocode/src/github.com/alecthomas/kong-hcl/v2/go.mod
/usr/share/gocode/src/github.com/alecthomas/kong-hcl/v2/loader.go
/usr/share/gocode/src/github.com/alecthomas/kong-hcl/v2/loader_test.go
/usr/share/licenses/golang-github-alecthomas-kong-hcl-2-devel
/usr/share/licenses/golang-github-alecthomas-kong-hcl-2-devel/COPYING

References

Summary

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