How to install Perl 6 modules

One of the biggest limitation of Perl 6 is the lack of access to the wealth of the Perl 5 CPAN. This does not mean though that there are no CPAN-like modules for Perl 6. There are a few, and some of them even work.

According to the latest count, there are over 100 modules available. Let's see how can we install them.

Note! This site is about Perl 6.
If you are looking for a solution for Perl 5, please check out the Perl 5 tutorial.


In the current system each package must have a Github repository. There are no releases. The installer fetches the latest from Github.

The official list of modules has a one-line explanation of each module and a link to their Github repository.

There is not a lot of module documentation, but whatever there is, is processed and displayed on the Perl 6 Maven site.


Currently the best tool to install Perl 6 modules is Panda written by tadzik (Tadeusz Sośnierz).

Assuming you already have Rakudo installed, you can install Panda by following these steps:

git clone
cd panda

This should install a few modules and Panda itself to ~/.perl6 on Linux and to c:\Users\USERNAME\.perl6 on Windows.

You have to change the PATH environment variable to include the ~/.perl6/bin directory.

Then you should be able to run panda list to list all the available modules and panda install HTML::Template to install the Perl 6 implementation of HTML::Template.

When you encounter installation problems, please report them either via the Perl 6 IRC channel or via the Perl6-users mailing list. Check the Perl 6 community page for details.

The Perl 6 Tricks and Treats newsletter has been around for a while. If you are interested to get special notification when there is new content on this site, it is the best way to keep track:
Full name:
This is a newsletter temporarily running on my personal site ( using Mailman, till I implement an alternative system in Perl 6.
Gabor Szabo
Written by Gabor Szabo

Published on 2012-08-26


In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus
Suggest a change
Elapsed time: 3.75224960

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.