How To Install go2chef on Fedora 34

go2chef is Tool to bootstrap a system from zero so that it’s able to run Chef

Introduction

In this tutorial we learn how to install go2chef on Fedora 34.

What is go2chef

go2chef is a Go tool for bootstrapping Chef installations in a flexible and self-contained way. With go2chef, our goal is to make bootstrapping any node in a Chef deployment as simple as “get go2chef onto a machine and run it”.

We can use yum or dnf to install go2chef on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install go2chef.

Install go2chef on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install go2chef using dnf by running the following command:

sudo dnf -y install go2chef

Install go2chef on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install go2chef using yum by running the following command:

sudo yum -y install go2chef

How To Uninstall go2chef on Fedora 34

To uninstall only the go2chef package we can use the following command:

sudo dnf remove go2chef

go2chef Package Contents on Fedora 34

/usr/bin/go2chef
/usr/bin/go2chef-remote
/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/2fc2c835aa33a80915f8380366509d174db999
/usr/lib/.build-id/90
/usr/lib/.build-id/90/81e56b5d790a83cb4e5adb35b76df9ef36804e
/usr/share/doc/go2chef
/usr/share/doc/go2chef/CODE_OF_CONDUCT.md
/usr/share/doc/go2chef/CONTRIBUTING.md
/usr/share/doc/go2chef/README.md
/usr/share/doc/go2chef/examples
/usr/share/doc/go2chef/examples/00-basic.json
/usr/share/doc/go2chef/examples/bundles
/usr/share/doc/go2chef/examples/bundles/chefctl
/usr/share/doc/go2chef/examples/bundles/chefctl/bundle.ps1
/usr/share/doc/go2chef/examples/bundles/chefctl/bundle.sh
/usr/share/doc/go2chef/examples/bundles/chefctl/chefctl-config.rb
/usr/share/doc/go2chef/examples/bundles/chefctl/chefctl.rb
/usr/share/doc/go2chef/examples/bundles/chefctl/chefctl_hooks.rb
/usr/share/doc/go2chef/examples/bundles/chefctl/client.rb
/usr/share/doc/go2chef/examples/bundles/chefrepo
/usr/share/doc/go2chef/examples/bundles/chefrepo/bundle.ps1
/usr/share/doc/go2chef/examples/bundles/chefrepo/bundle.sh
/usr/share/doc/go2chef/examples/bundles/chefrepo/config.json
/usr/share/doc/go2chef/examples/bundles/chefrepo/cookbooks
/usr/share/doc/go2chef/examples/bundles/chefrepo/cookbooks/core
/usr/share/doc/go2chef/examples/bundles/chefrepo/cookbooks/core/demo1
/usr/share/doc/go2chef/examples/bundles/chefrepo/cookbooks/core/demo1/metadata.rb
/usr/share/doc/go2chef/examples/bundles/chefrepo/cookbooks/core/demo1/recipes
/usr/share/doc/go2chef/examples/bundles/chefrepo/cookbooks/core/demo1/recipes/default.rb
/usr/share/doc/go2chef/examples/bundles/multi
/usr/share/doc/go2chef/examples/bundles/multi/contents
/usr/share/doc/go2chef/examples/bundles/multi/contents/contents
/usr/share/doc/go2chef/examples/bundles/multi/scripts
/usr/share/doc/go2chef/examples/bundles/multi/scripts/bundle.sh
/usr/share/doc/go2chef/examples/bundles/whoami
/usr/share/doc/go2chef/examples/bundles/whoami/bundle.json
/usr/share/doc/go2chef/examples/bundles/whoami_exec
/usr/share/doc/go2chef/examples/bundles/whoami_exec/bundle.ps1
/usr/share/doc/go2chef/examples/bundles/whoami_exec/bundle.rb
/usr/share/doc/go2chef/examples/bundles/whoami_exec/bundle.sh
/usr/share/doc/go2chef/examples/config_bundle_local.json
/usr/share/doc/go2chef/examples/config_bundle_multi.json
/usr/share/doc/go2chef/examples/config_bundle_whoami_exec.json
/usr/share/doc/go2chef/examples/config_install_apt.json
/usr/share/doc/go2chef/examples/config_install_dnf.json
/usr/share/doc/go2chef/examples/config_install_dnf_chefctl.json
/usr/share/doc/go2chef/examples/config_install_msi.json
/usr/share/doc/go2chef/examples/config_install_pkg.json
/usr/share/doc/go2chef/examples/config_install_rpm.json
/usr/share/doc/go2chef/examples/config_install_yum.json
/usr/share/doc/go2chef/examples/configs
/usr/share/doc/go2chef/examples/configs/source
/usr/share/doc/go2chef/examples/configs/source/s3.json
/usr/share/licenses/go2chef
/usr/share/licenses/go2chef/LICENSE

References

Summary

In this tutorial we learn how to install go2chef on Fedora 34 using yum and dnf.