How To Install moarvm on CentOS 8

moarvm is Meta-model On A Runtime Virtual Machine

Introduction

In this tutorial we learn how to install moarvm on CentOS 8.

What is moarvm

Short for “Metamodel On A Runtime”, MoarVM is a virtual machine built especially for Rakudo Perl 6 and the NQP Compiler Toolchain. MoarVM is a back-end for NQP. MoarVM already stands out among the various Rakudo and NQP compilation targets by typically Running the Perl 6 specification test suite fastest Having the lowest memory usage Having the best start-up time Being fastest to build both NQP and Rakudo - and thus in theory your Perl 6 and NQP programs too!

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

Install moarvm on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install moarvm

Install moarvm on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install moarvm

How To Uninstall moarvm on CentOS 8

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

sudo dnf remove moarvm

moarvm Package Contents on CentOS 8

/usr/bin/moar
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/7463ff46497af608dfdb1dc88d3eedf5a3d363
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/df81d7fe47e49190514237659ba2737cc471b9
/usr/lib64/libmoar.so
/usr/share/doc/moarvm
/usr/share/doc/moarvm/CREDITS
/usr/share/doc/moarvm/docs
/usr/share/doc/moarvm/docs/6model-parametric-extensions.markdown
/usr/share/doc/moarvm/docs/ChangeLog
/usr/share/doc/moarvm/docs/README.md
/usr/share/doc/moarvm/docs/arg-passing.markdown
/usr/share/doc/moarvm/docs/bootstrap.markdown
/usr/share/doc/moarvm/docs/bytecode.markdown
/usr/share/doc/moarvm/docs/collation.asciidoc
/usr/share/doc/moarvm/docs/contributing.org
/usr/share/doc/moarvm/docs/debug-server-protocol.md
/usr/share/doc/moarvm/docs/exceptions.markdown
/usr/share/doc/moarvm/docs/extops.markdown
/usr/share/doc/moarvm/docs/gc.markdown
/usr/share/doc/moarvm/docs/interpreter.markdown
/usr/share/doc/moarvm/docs/japhb-todo.txt
/usr/share/doc/moarvm/docs/jit
/usr/share/doc/moarvm/docs/jit/how-to-add-an-missing-expression-operator.org
/usr/share/doc/moarvm/docs/jit/ir.md
/usr/share/doc/moarvm/docs/jit/overview.org
/usr/share/doc/moarvm/docs/jit/runtime.md
/usr/share/doc/moarvm/docs/jit/tiles.md
/usr/share/doc/moarvm/docs/jit/todo.org
/usr/share/doc/moarvm/docs/moar.pod
/usr/share/doc/moarvm/docs/release_guide.md
/usr/share/doc/moarvm/docs/reveal.md
/usr/share/doc/moarvm/docs/strings.asciidoc
/usr/share/licenses/moarvm
/usr/share/licenses/moarvm/LICENSE
/usr/share/man/man1/moar.1.gz
/usr/share/nqp
/usr/share/nqp/lib
/usr/share/nqp/lib/MAST
/usr/share/nqp/lib/MAST/Nodes.nqp
/usr/share/nqp/lib/MAST/Ops.nqp

References

Summary

In this tutorial we learn how to install moarvm on CentOS 8 using yum and dnf.