How To Install rakudo on Ubuntu 18.04

In this tutorial we learn how to install rakudo on Ubuntu 18.04. rakudo is Perl 6 implementation on top of Moar virtual machine

Introduction

In this tutorial we learn how to install rakudo on Ubuntu 18.04.

What is rakudo

rakudo is:

Rakudo Perl is a compiler that implements the Perl 6 specification and runs on top of several virtual machines. Debian rakudo package runs on top of MoarVM.

Perl 6 is a programming language, member of the Perl family. Like Perl 5, her world-famous big sister, Perl 6 intends to carry forward the high ideals of the Perl community and is currently being developed by a team of dedicated and enthusiastic volunteers.

valgrind package installation is suggested to debug issues with perl6-valgrind-m program.

There are three methods to install rakudo on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install rakudo Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install rakudo using apt-get by running the following command:

sudo apt-get -y install rakudo

Install rakudo Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install rakudo using apt by running the following command:

sudo apt -y install rakudo

Install rakudo Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install rakudo using aptitude by running the following command:

sudo aptitude -y install rakudo

How To Uninstall rakudo on Ubuntu 18.04

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

sudo apt-get remove rakudo

Uninstall rakudo And Its Dependencies

To uninstall rakudo and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove rakudo

Remove rakudo Configurations and Data

To remove rakudo configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge rakudo

Remove rakudo configuration, data, and all of its dependencies

We can use the following command to remove rakudo configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge rakudo

References

Summary

In this tutorial we learn how to install rakudo package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.