How To Install nqp on CentOS 7

In this tutorial we learn how to install nqp on CentOS 7. nqp is Not Quite Perl (6)

Introduction

In this tutorial we learn how to install nqp on CentOS 7.

What is nqp

This is “Not Quite Perl” – a lightweight Perl 6-like environment for virtual machines. The key feature of NQP is that it’s designed to be a very small environment (as compared with, say, perl6 or Rakudo) and is focused on being a high-level way to create compilers and libraries for virtual machines (such as JVM and MoarVM). Unlike a full-fledged implementation of Perl 6, NQP strives to have as small a run-time footprint as it can, while still providing a Perl 6 object model and regular expression engine for the virtual machine.

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

Install nqp on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install nqp

Install nqp on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install nqp

How To Uninstall nqp on CentOS 7

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

sudo dnf remove nqp

References

Summary

In this tutorial we learn how to install nqp on CentOS 7 using yum and dnf.