How To Install butane on Fedora 34

butane is Butane config transpiler

Introduction

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

What is butane

Butane translates human-readable Butane Configs into machine-readable Ignition configs for provisioning operating systems that use Ignition.

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

Install butane 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 butane using dnf by running the following command:

sudo dnf -y install butane

Install butane 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 butane using yum by running the following command:

sudo yum -y install butane

How To Uninstall butane on Fedora 34

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

sudo dnf remove butane

butane Package Contents on Fedora 34

/usr/bin/butane
/usr/bin/fcct
/usr/lib/.build-id
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/87d3e8e9b404120c192a4b8cac59d452e252dd
/usr/share/doc/butane
/usr/share/doc/butane/NEWS
/usr/share/doc/butane/README.md
/usr/share/doc/butane/docs
/usr/share/doc/butane/docs/_config.yml
/usr/share/doc/butane/docs/_sass
/usr/share/doc/butane/docs/_sass/color_schemes
/usr/share/doc/butane/docs/_sass/color_schemes/coreos.scss
/usr/share/doc/butane/docs/config-fcos-v1_0.md
/usr/share/doc/butane/docs/config-fcos-v1_1.md
/usr/share/doc/butane/docs/config-fcos-v1_2.md
/usr/share/doc/butane/docs/config-fcos-v1_3.md
/usr/share/doc/butane/docs/config-fcos-v1_4.md
/usr/share/doc/butane/docs/config-fcos-v1_5-exp.md
/usr/share/doc/butane/docs/config-openshift-v4_10-exp.md
/usr/share/doc/butane/docs/config-openshift-v4_8.md
/usr/share/doc/butane/docs/config-openshift-v4_9.md
/usr/share/doc/butane/docs/config-rhcos-v0_1.md
/usr/share/doc/butane/docs/development.md
/usr/share/doc/butane/docs/examples.md
/usr/share/doc/butane/docs/favicon.ico
/usr/share/doc/butane/docs/getting-started.md
/usr/share/doc/butane/docs/index.md
/usr/share/doc/butane/docs/specs.md
/usr/share/doc/butane/docs/upgrading-fcos.md
/usr/share/doc/butane/docs/upgrading-openshift.md
/usr/share/doc/butane/docs/upgrading.md
/usr/share/licenses/butane
/usr/share/licenses/butane/LICENSE

References

Summary

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