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