How To Install nqp on CentOS 8
Introduction
In this tutorial we learn how to install nqp
on CentOS 8.
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 8. In this tutorial we discuss both methods but you only need to choose one of method to install nqp.
Install nqp 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 nqp
using dnf
by running the following command:
sudo dnf -y install nqp
Install nqp 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 nqp
using yum
by running the following command:
sudo yum -y install nqp
How To Uninstall nqp on CentOS 8
To uninstall only the nqp
package we can use the following command:
sudo dnf remove nqp
nqp Package Contents on CentOS 8
/usr/bin/nqp
/usr/bin/nqp-m
/usr/lib64/nqp
/usr/lib64/nqp/MASTNodes.moarvm
/usr/lib64/nqp/MASTOps.moarvm
/usr/lib64/nqp/ModuleLoader.moarvm
/usr/lib64/nqp/NQPCORE.setting.moarvm
/usr/lib64/nqp/NQPHLL.moarvm
/usr/lib64/nqp/NQPP5QRegex.moarvm
/usr/lib64/nqp/NQPP6QRegex.moarvm
/usr/lib64/nqp/QAST.moarvm
/usr/lib64/nqp/QASTNode.moarvm
/usr/lib64/nqp/QRegex.moarvm
/usr/lib64/nqp/nqp.moarvm
/usr/lib64/nqp/nqpmo.moarvm
/usr/lib64/nqp/profiler
/usr/lib64/nqp/profiler/template.html
/usr/share/doc/nqp
/usr/share/doc/nqp/CREDITS
/usr/share/doc/nqp/README.pod
/usr/share/licenses/nqp
/usr/share/licenses/nqp/LICENSE
/usr/share/nqp/lib/profiler
/usr/share/nqp/lib/profiler/template.html
References
Summary
In this tutorial we learn how to install nqp
on CentOS 8 using yum and dnf.