How To Install nekovm on Fedora 34

nekovm is Neko embedded scripting language and virtual machine Neko embedded scripting language and virtual machine

Introduction

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

What is nekovm

Neko is a high-level dynamically typed programming language which can also be used as an embedded scripting language. It has been designed to provide a common run-time for several different languages. Neko is not only very easy to learn and use, but also has the flexibility of being able to extend the language with C libraries. You can even write generators from your own language to Neko and then use the Neko run-time to compile, run, and access existing libraries. If you need to add a scripting language to your application, Neko provides one of the best trade-offs available between simplicity, extensibility and speed. Neko allows the language designer to focus on design whilst reusing a fast and well constructed run-time, as well as existing libraries for accessing file system, network, databases, XML… Neko has a compiler and virtual machine. The Virtual Machine is both very lightweight and extremely well optimized so that it can run very quickly. The VM can be easily embedded into any application and your libraries are directly accessible using the C foreign function interface. The compiler converts a source .neko file into a byte-code .n file that can be executed with the Virtual Machine. Although the compiler is written in Neko itself, it is still very fast. You can use the compiler as standalone command-line executable separated from the VM, or as a Neko library to perform compile-and-run for interactive languages. nekovm 2.3.0 6.fc34 x86_64 422 k nekovm-2.3.0-6.fc34.src.rpm fedora Neko embedded scripting language and virtual machine https LGPLv2+ Neko is a high-level dynamically typed programming language which can also be used as an embedded scripting language. It has been designed to provide a common run-time for several different languages. Neko is not only very easy to learn and use, but also has the flexibility of being able to extend the language with C libraries. You can even write generators from your own language to Neko and then use the Neko run-time to compile, run, and access existing libraries. If you need to add a scripting language to your application, Neko provides one of the best trade-offs available between simplicity, extensibility and speed. Neko allows the language designer to focus on design whilst reusing a fast and well constructed run-time, as well as existing libraries for accessing file system, network, databases, XML… Neko has a compiler and virtual machine. The Virtual Machine is both very lightweight and extremely well optimized so that it can run very quickly. The VM can be easily embedded into any application and your libraries are directly accessible using the C foreign function interface. The compiler converts a source .neko file into a byte-code .n file that can be executed with the Virtual Machine. Although the compiler is written in Neko itself, it is still very fast. You can use the compiler as standalone command-line executable separated from the VM, or as a Neko library to perform compile-and-run for interactive languages.

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

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

sudo dnf -y install nekovm

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

sudo yum -y install nekovm

How To Uninstall nekovm on Fedora 34

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

sudo dnf remove nekovm

nekovm Package Contents on Fedora 34

/usr/bin/neko
/usr/bin/nekoc
/usr/bin/nekoml
/usr/bin/nekotools
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/fd251d5a20ce984805536510bfd5a2793f49f0
/usr/lib/.build-id/31
/usr/lib/.build-id/31/d71a912fcab0daa1b224ac4c219e7b4e03a561
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/3ab24a9d83920ec7a5c5a096fe240fa4d81716
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/78b9f3f51250ba87313c6c5166dd9d2e1661ae
/usr/lib/.build-id/78
/usr/lib/.build-id/78/41fa30106b773e24f6508620a11c8811d48f00
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/eac9d06037f44e837e191b53dcaa4598cd0105
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/424f76035435c721c729fe23ee630fe13be641
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/02c5e5b4652f16ec2e8ecc40f27f02a5ea2472
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/7a46857f88b688b907de4337b06049c1e4e806
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/98f96f667d36bfa2e420278d4729f36a3395f2
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/3c4f160d699e2bb27410cbca90a6c1056b4c8d
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/3b66e753ec68d79fba458389d0bccf29bf9f5b
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/9483d94790ae1b8b3ad75eb411004f354d69e5
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/1731b5da26054e29d28f2229eb2239fd5a564b
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/ea4bd86905a1c648c00156a1983bb4b39a2a8a
/usr/lib64/libneko.so.2
/usr/lib64/libneko.so.2.3.0
/usr/lib64/neko
/usr/lib64/neko/mod_neko2.ndll
/usr/lib64/neko/mod_tora2.ndll
/usr/lib64/neko/mysql.ndll
/usr/lib64/neko/mysql5.ndll
/usr/lib64/neko/nekoml.std
/usr/lib64/neko/regexp.ndll
/usr/lib64/neko/sqlite.ndll
/usr/lib64/neko/ssl.ndll
/usr/lib64/neko/std.ndll
/usr/lib64/neko/ui.ndll
/usr/lib64/neko/zlib.ndll
/usr/share/doc/nekovm
/usr/share/doc/nekovm/README.md
/usr/share/licenses/nekovm
/usr/share/licenses/nekovm/LICENSE
/usr/bin/neko
/usr/bin/nekoc
/usr/bin/nekoml
/usr/bin/nekotools
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/a648d3c997f019b6cc7657591bc1b561f897ce
/usr/lib/.build-id/11
/usr/lib/.build-id/11/9f3e80a076b01cc9111f72ac09fd14d8d9b0a2
/usr/lib/.build-id/12
/usr/lib/.build-id/12/6bf2cd1b91c9862143957ff888d45b3e2babdf
/usr/lib/.build-id/45
/usr/lib/.build-id/45/f4c732c06827bf9c5fb7eced9eaccf8fe51957
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/1e76ecc44e14738773b0288eef95ae7591c795
/usr/lib/.build-id/73
/usr/lib/.build-id/73/2d5898cb3bcca51352656ec46bd49118991b37
/usr/lib/.build-id/84
/usr/lib/.build-id/84/0695a278eb38c1dc8ab18fd6037d051bce9dbb
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/716ff000ec0cb69def29b6dfc5170180751c98
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/7b1b851c6e572b47693b3b85e570c621a4066e
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/6da97317343b4ba303c8da6a39873b9b3989d9
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/143b511a0b2d152f97689768444f5cf142be2f
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/6b89d172cc48b7cfbe11fe33884fe3b34d6f57
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/f5b2ff9f4f5f0e35fe7eb7b48ddf199c68459e
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/d8c678de9da5b587d2034341804a9876538397
/usr/lib/.build-id/de
/usr/lib/.build-id/de/c7dc35a8742743434eb31c70d6de967a03a528
/usr/lib/libneko.so.2
/usr/lib/libneko.so.2.3.0
/usr/lib/neko
/usr/lib/neko/mod_neko2.ndll
/usr/lib/neko/mod_tora2.ndll
/usr/lib/neko/mysql.ndll
/usr/lib/neko/mysql5.ndll
/usr/lib/neko/nekoml.std
/usr/lib/neko/regexp.ndll
/usr/lib/neko/sqlite.ndll
/usr/lib/neko/ssl.ndll
/usr/lib/neko/std.ndll
/usr/lib/neko/ui.ndll
/usr/lib/neko/zlib.ndll
/usr/share/doc/nekovm
/usr/share/doc/nekovm/README.md
/usr/share/licenses/nekovm
/usr/share/licenses/nekovm/LICENSE

References

Summary

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