Public | Automated Build

Last pushed: 25 days ago
Short Description
Helper images for creating native Rakudo packages.
Full Description



Table of Contents


rakudo-pkg offers native packages of Rakudo Perl 6 that
closely follow upstream development. Most of the time, the packages will be
released on the same day as the Rakudo sources. At the moment, packages are
provided for Alpine, CentOS, Debian, Fedora, openSUSE and Ubuntu. Feel free to
contribute or
request new packages.

rakudo-pkg aims to provide small self-contained (no dependencies, no files
outside /opt/rakudo-pkg), pre-compiled native OS packages that can be used
on user's computers, servers and --very importantly-- containers. Therefor,
only the Rakudo compiler and the
Zef package manager are provided. Third
party modules can be easily installed if desired.

From a security point of view, we like to create the builds in the open: the
packages are created, checksummed and automatically uploaded from the code in
this repository by Travis CI to
Github Releases and
Bintray Repositories.

For those users, or rather System Administrators, that prefer to build their
own Rakudo packages, rakudo-pkg can be used as a build framework. Because
Docker containers are used when creating native Linux packages, any platform
running Docker can be used as a host, including Linux, MacOS and Windows machines.

OS Repositories

The easiest way to install the Rakudo (starting from release 2018.04.1) on
Debian, Centos, Fedora, openSUSE and Ubuntu is by using the rakudo-pkg
repositories. For Alpine, see Direct Downloads.

You still need to adjust the PATH and optionally
install zef as a user.


  • To use the repos on Debian and Ubuntu, you need to add the applicable sources:
$ sudo apt-key adv --keyserver hkp:// --recv 379CE192D401AB61
$ echo "deb {distribution} main | sudo tee -a /etc/apt/sources.list

Replace {distribution} by:

  • jessie in Debian 8.
  • stretch in Debian 9.
  • trusty in Ubuntu 14.04.
  • xenial in Ubuntu 16.04.
  • artful in Ubuntu 17.10.
  • bionic in Ubuntu 18.04.

  • To use the repos on CentOS, Fedora and openSUSE, you need to add a repofile
    (e.g. as /etc/yum.repositories.d/rakudo-pkg.repo) with these contents:


Replace {os} and {release} by:

  • CentOS and 7 for CentOS 7.
  • Fedora and 26 for Fedora 26.
  • Fedora and 27 for Fedora 27.
  • Fedora and 28 for Fedora 28.
  • openSUSE and 42.3 for openSUSE 42.3.

Direct Downloads

You still need to adjust the PATH and optionally
install zef as a user.

Most modern computer have a 64-bit Operating System, so regular users should
use 64-bit packages. The 32-bit are supplied for specific usages, like 32-bit
images on some cloud providers. 32-bit Rakudo is not JIT enabled (upstream)
and as a result a lot slower.

At the moment the following packages are provided (see the full listing
including older versions in the releases tab):

You can install these package with the regular package manager of your

  • Alpine:

    $ sudo apk add --allow-untrusted *.apk
  • Debian and Ubuntu:

$ sudo dpkg -i *.deb
  • CentOS and Fedora:
$ sudo rpm -Uvh *.rpm

Set the PATH

In order to run perl6 by typing perl6 instead of the full path
/opt/rakudo-pkg/bin/perl6 you'll have to add the rakudo-pkg bin
directories to your PATH. A script is supplied to do this automatically for
you. Run it as your regular user:

$ /opt/rakudo-pkg/bin/add-perl6-to-path

Alternatively, you can change the PATH manually. (Be aware that environment
files start with a '.' and are hidden by convention on graphical file browsers:

  • For bourne derivated shells (like bash), add this to your .profile,
    .bash_profile or the corresponding environment init script for your shell:
export PATH
  • For zsh, add this to ~/.zshenv or ~/.zprofile, depending on your
path=(~/.perl6/bin /opt/rakudo-pkg/bin /opt/rakudo-pkg/share/perl6/site/bin $path[@])

Zef Module Manager as a Regular User

The installation supplies a working global Zef installation
(/opt/rakudo-pkg/bin/zef). However, Rakudo takes a different
approach to many other languages (including Perl 5): modules are by default
installed the home directory of the user. A script is supplied to install
zef as a user. Zef will be installed to ~/.perl6/bin/zef and modules will
reside in ~/.perl6:


Windows Subsystem for Linux

If you're using the Windows Subsystem for Linux (aka Bash or Ubuntu on
Windows 10), use the repository or package for the installed Linux
distribution. You'll need to strip the moarvm library of (unused) kernel
functionalities that Windows does not implement yet:

$ /opt/rakudo-pkg/bin/fix_windows10

Using rakudo-pkg on Travis

You can use rakudo-pkg to speed-up the continuous integration of your Perl 6
module on Travis and other CI systems. Since this
package is going to be downloaded in the install phase, you don't
need to specify a language (by default, it will install Ruby). Don't
specify perl6 since this will download and build perl6 from
source. A valid .travis.yml would include:

dist: trusty
sudo: required
    - export PATH="/opt/rakudo-pkg/bin:/opt/rakudo-pkg/share/perl6/site/bin:$PATH"
  - set -e
  - sudo apt-key adv --keyserver hkp:// --recv 379CE192D401AB61
  - echo "deb trusty main | sudo tee -a /etc/apt/sources.list
  - sudo apt-get update && sudo apt-get install rakudo-pkg

After this line, you should do zef install . && zef test . or whatever else you need to test your package. In case you need an specific version, older
versions are kept in the repository.

Building your Own Packages

If you prefer to build your own packages instead of the ones offered in the
releases tab, you can use the
images from the DockerHub. The
image name is nxadm/rakudo-pkg while where every
image tag corresponds with
an specific OS-Release-Architecture combination. Alternatively, you can build
them with the Dockerfiles in the docker directory.

Ubuntu 32-bit base images

Ubuntu does not release 32-bit base images. An script is supplied to build
them from official sources.

$ bin/create-baseimg.p6
$ bin/create-baseimg.p6 <Ubuntu release>
$ bin/create-baseimg.p6 18.04

Create a Package:

You need to supply the necessary environment variables to Docker:


Other Rakudo Distributions

What about packages provided by Operating Systems?

Our packages do not interfere with the packages included in Linux
distributions and can be installed at the same time. Distribution packages
that integrate with the Operating System are often a good choice. That said,
Perl 6 reached language stability very recently. Packages that date from
sources before December 2015 should be considered beta (Rakudo is a lot
slower and some features where removed or added in the language). Perl 6 and
Rakudo are evolving very fast, getting better and faster. So, often you'll
need a recent release to use these features.

This is the state of Rakudo packaged by the distribution themselves:

What about Rakudo Star?

Rakudo Star for Linux is certainly a
distribution for end-users worth exploring. It has a very different use case
in mind than rakudo-pkg, however. While we concentrate on releasing
minimalistic, self-contained packages for every Rakudo release (monthly),
Rakudo Star releases quarterly and it includes a wide selection of third party
modules. On Linux, it does not provide binaries. Instead it locally compiles
the Rakudo compiler and the third party modules.


Issues (bugs and ideas) and PRs are always welcome. See

Docker Pull Command
Source Repository