How To Install golang-github-hashicorp-consul-migrate on Fedora 36

In this tutorial we learn how to install golang-github-hashicorp-consul-migrate in Fedora 36. golang-github-hashicorp-consul-migrate is Consul server data migrator

Introduction

In this tutorial we learn how to install golang-github-hashicorp-consul-migrate on Fedora 36.

What is golang-github-hashicorp-consul-migrate

Consul-migrate is a Go package and CLI utility to perform a very specific data migration for Consul servers nodes. Between Consul versions 0.5.0 and 0.5.1, the backend for storing Raft data was changed from LMDB to BoltDB. To support seamless upgrades, this library is embedded in Consul version 0.5.1 to perform the upgrade automatically.

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

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

sudo dnf -y install golang-github-hashicorp-consul-migrate

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

sudo yum -y install golang-github-hashicorp-consul-migrate

How To Uninstall golang-github-hashicorp-consul-migrate on Fedora 36

To uninstall only the golang-github-hashicorp-consul-migrate package we can use the following command:

sudo dnf remove golang-github-hashicorp-consul-migrate

golang-github-hashicorp-consul-migrate Package Contents on Fedora 36

/usr/bin/consul-migrate
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/18092d4352fc27a80345abda3114c6be336c59
/usr/share/doc/golang-github-hashicorp-consul-migrate
/usr/share/doc/golang-github-hashicorp-consul-migrate/README.md
/usr/share/licenses/golang-github-hashicorp-consul-migrate
/usr/share/licenses/golang-github-hashicorp-consul-migrate/LICENSE

References

Summary

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