How To Install golang-github-spf13-viper-devel on Fedora 36

In this tutorial we learn how to install golang-github-spf13-viper-devel in Fedora 36. golang-github-spf13-viper-devel is Go configuration with fangs

Introduction

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

What is golang-github-spf13-viper-devel

Viper is a complete configuration solution for Go applications including 12-Factor apps. It is designed to work within an application, and can handle all types of configuration needs and formats. It supports – setting defaults – reading from JSON, TOML, YAML, HCL, and Java properties config files – live watching and re-reading of config files (optional) – reading from environment variables – reading from remote config systems (etcd or Consul), and watching changes – reading from command line flags – reading from buffer – setting explicit values Viper can be thought of as a registry for all of your applications configuration needs. This package contains the source code needed for building packages that reference the following Go import paths – github.com/spf13/viper

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

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

sudo dnf -y install golang-github-spf13-viper-devel

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

sudo yum -y install golang-github-spf13-viper-devel

How To Uninstall golang-github-spf13-viper-devel on Fedora 36

To uninstall only the golang-github-spf13-viper-devel package we can use the following command:

sudo dnf remove golang-github-spf13-viper-devel

golang-github-spf13-viper-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-spf13-viper-devel
/usr/share/doc/golang-github-spf13-viper-devel/README.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/spf13
/usr/share/gocode/src/github.com/spf13/viper
/usr/share/gocode/src/github.com/spf13/viper/.goipath
/usr/share/gocode/src/github.com/spf13/viper/README.md
/usr/share/gocode/src/github.com/spf13/viper/TROUBLESHOOTING.md
/usr/share/gocode/src/github.com/spf13/viper/flags.go
/usr/share/gocode/src/github.com/spf13/viper/flags_test.go
/usr/share/gocode/src/github.com/spf13/viper/fs.go
/usr/share/gocode/src/github.com/spf13/viper/fs_test.go
/usr/share/gocode/src/github.com/spf13/viper/go.mod
/usr/share/gocode/src/github.com/spf13/viper/internal
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/decoder.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/decoder_test.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/encoder.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/encoder_test.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/error.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/hcl
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/hcl/codec.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/json
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/json/codec.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/toml
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/toml/codec.go
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/yaml
/usr/share/gocode/src/github.com/spf13/viper/internal/encoding/yaml/codec.go
/usr/share/gocode/src/github.com/spf13/viper/internal/testutil
/usr/share/gocode/src/github.com/spf13/viper/internal/testutil/env_go1_16.go
/usr/share/gocode/src/github.com/spf13/viper/internal/testutil/env_go1_17.go
/usr/share/gocode/src/github.com/spf13/viper/internal/testutil/filepath.go
/usr/share/gocode/src/github.com/spf13/viper/logger.go
/usr/share/gocode/src/github.com/spf13/viper/overrides_test.go
/usr/share/gocode/src/github.com/spf13/viper/util.go
/usr/share/gocode/src/github.com/spf13/viper/util_test.go
/usr/share/gocode/src/github.com/spf13/viper/viper.go
/usr/share/gocode/src/github.com/spf13/viper/viper_go1_15.go
/usr/share/gocode/src/github.com/spf13/viper/viper_go1_16.go
/usr/share/gocode/src/github.com/spf13/viper/viper_test.go
/usr/share/gocode/src/github.com/spf13/viper/watch.go
/usr/share/gocode/src/github.com/spf13/viper/watch_wasm.go
/usr/share/licenses/golang-github-spf13-viper-devel
/usr/share/licenses/golang-github-spf13-viper-devel/LICENSE

References

Summary

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