How To Install golang-github-cloudflare on Fedora 36

In this tutorial we learn how to install golang-github-cloudflare in Fedora 36. golang-github-cloudflare is Go library for the Cloudflare v4 API

Introduction

In this tutorial we learn how to install golang-github-cloudflare on Fedora 36.

What is golang-github-cloudflare

A Go library for interacting with Cloudflare’s API v4. This library allows you to - Manage and automate changes to your DNS records within Cloudflare - Manage and automate changes to your zones (domains) on Cloudflare, including adding new zones to your account - List and modify the status of WAF (Web Application Firewall) rules for your zones - Fetch Cloudflare’s IP ranges for automating your firewall whitelisting A command-line client, flarectl, is also available as part of this project.

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

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

sudo dnf -y install golang-github-cloudflare

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

sudo yum -y install golang-github-cloudflare

How To Uninstall golang-github-cloudflare on Fedora 36

To uninstall only the golang-github-cloudflare package we can use the following command:

sudo dnf remove golang-github-cloudflare

golang-github-cloudflare Package Contents on Fedora 36

/usr/bin/flarectl
/usr/lib/.build-id
/usr/lib/.build-id/71
/usr/lib/.build-id/71/350b56fa01849fd2fa47c52dd4e83eb4595ab8
/usr/share/doc/golang-github-cloudflare
/usr/share/doc/golang-github-cloudflare/CODE_OF_CONDUCT.md
/usr/share/doc/golang-github-cloudflare/README.md
/usr/share/licenses/golang-github-cloudflare
/usr/share/licenses/golang-github-cloudflare/LICENSE

References

Summary

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