How To Install gomacro on Fedora 34

gomacro is Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros

Introduction

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

What is gomacro

Gomacro is an almost complete Go interpreter, implemented in pure Go. It offers both an interactive REPL and a scripting mode, and does not require a Go toolchain at runtime (except in one very specific case package at runtime).

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

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

sudo dnf -y install gomacro

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

sudo yum -y install gomacro

How To Uninstall gomacro on Fedora 34

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

sudo dnf remove gomacro

gomacro Package Contents on Fedora 34

/usr/bin/gomacro
/usr/lib/.build-id
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/45840758352c5376eb45a3bd53a69438d1667b
/usr/share/doc/gomacro
/usr/share/doc/gomacro/README.md
/usr/share/doc/gomacro/TrickyGo.md
/usr/share/doc/gomacro/_example
/usr/share/doc/gomacro/_example/arith.gomacro
/usr/share/doc/gomacro/_example/bag.go.easyjson
/usr/share/doc/gomacro/_example/bag.go.save
/usr/share/doc/gomacro/_example/channel.gomacro
/usr/share/doc/gomacro/_example/collatz.gomacro
/usr/share/doc/gomacro/_example/collatz.igo
/usr/share/doc/gomacro/_example/collatz.py
/usr/share/doc/gomacro/_example/earljwagner1
/usr/share/doc/gomacro/_example/earljwagner1/earljwagner1.go
/usr/share/doc/gomacro/_example/earljwagner2
/usr/share/doc/gomacro/_example/earljwagner2/cube.go
/usr/share/doc/gomacro/_example/earljwagner2/earljwagner2.go
/usr/share/doc/gomacro/_example/embedded_field.go
/usr/share/doc/gomacro/_example/embedded_field.gomacro
/usr/share/doc/gomacro/_example/fibonacci.gomacro
/usr/share/doc/gomacro/_example/fibonacci.igo
/usr/share/doc/gomacro/_example/fibonacci.py
/usr/share/doc/gomacro/_example/for_nested.go
/usr/share/doc/gomacro/_example/for_range.gomacro
/usr/share/doc/gomacro/_example/glycerine1
/usr/share/doc/gomacro/_example/glycerine1/main.go
/usr/share/doc/gomacro/_example/interface.go
/usr/share/doc/gomacro/_example/interrupt
/usr/share/doc/gomacro/_example/interrupt/interrupt_interpreter.go
/usr/share/doc/gomacro/_example/main.go
/usr/share/doc/gomacro/_example/make_fibonacci.gomacro
/usr/share/doc/gomacro/_example/make_fibonacci.gomacro_output
/usr/share/doc/gomacro/doc
/usr/share/doc/gomacro/doc/code_generation.pdf
/usr/share/doc/gomacro/doc/features-and-limitations.md
/usr/share/doc/gomacro/doc/generics-c++.md
/usr/share/doc/gomacro/doc/generics-cti.md
/usr/share/doc/gomacro/doc/quasiquote.md
/usr/share/licenses/gomacro
/usr/share/licenses/gomacro/LICENSE

References

Summary

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