Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time


A Package Manager for Raku.



Pakku commands allows one to add, remove, upgrade, list, search or download Raku distributions.

There are two types of options:

General options

These are the options that control the general behavior of Pakku, like specify the configuration file, run asynchronously or disable colors. The general options are valid for all commands, and must be placed before the desired command (add, remove...).

Specific command options

These are the options that control the specified command, for example when installing a distributions one can specify notest option to disable testing. these options must be placed after the command.

Pakku full command is similar to:

pakku [general options] [command] [specific command options] [distributions to install]

  • Pakku command result is either:

    • -Ofun - Success
    • Nofun - Failure
  • Pakku verbosity levels:

    • 1 「debug」 🐛 → Everything
    • 2 「 now 」 🦋 → What is happenning now
    • 3 「info 」 🧚 → Important things only
    • 4 「warn 」 🐞 → Warnings only
    • 5 「error」 🦗 → Errors only
    • 0 「silent」 → Nothing

Pakku Output

Pakku output aims to be tidy and concise, uses emojis, colors and three letters key words to convey messages.

For example, the 🦋 emoji indicates that Pakku is starting a task, while 🧚 means Pakku successfully completed a task.

An output line like:

🦋 BLD: 「Inline::Perl5:ver<0.60>:auth<cpan:NINE>:api<>」

means Pakku is starting to build Inline::Perl5:ver<0.60>:auth<cpan:NINE>:api<>, based on the result another output line would be:

🧚 BLD: 「Inline::Perl5:ver<0.60>:auth<cpan:NINE>:api<>」 # successful build

🦗 BLD: 「Inline::Perl5:ver<0.60>:auth<cpan:NINE>:api<>」 # failed build

Below is a list of expected output lines and its meaning:

🧚 PRC → Start processing
🦋 SPC → Processing Spec
🦋 MTA → Processing Meta
🦋 FTC → Fetching
🦋 BLD → Building
🦋 STG → Staging
🦋 TST → Testing
🧚 BLD → Build success
🧚 TST → Test success
🧚 BIN → Binary added
🐞 WAI → Waiting
🐞 TOT → Timed out
🦗 SPC → Error processing Spec
🦗 MTA → Error processing Meta
🦗 BLD → Build failure
🦗 TST → Test failure
🦗 CNF → Config error
🦗 CMD → Command error


Add distribution

pakku add MyModule
pakku add nodeps  MyModule
pakku add notest  MyModule
pakku add exclude Dep1 MyModule
pakku add noprecomp notest  MyModule
pakku add to      /opt/MyApp MyModule
pakku add force   to   vendor  MyModule1 MyModule2

Options: Specific to add command

deps            → Add dependencies
nodeps          → No dependencies
exclude Dep1    → Exclude Dep1
deps only       → Dependencies only
build           → Build distribution
nobuild         → Bypass build
test            → Test distribution
notest          → Bypass test
xtest           → XTest distribution
noxtest         → Bypass xtest
force           → Force add distribution even if installed
noforce         → No force
precomp         → Precompile distribution 
noprecomp       → No precompile
to < repo >     → Add distribution to repo < home site vendor core /path/to/MyApp >

Remove distribution

pakku remove MyModule
pakku remove from site MyModule

Options: Specific to remove command

from < repo > → Remove distribution from provided repo only

List installed distributions

pakku list
pakku list MyModule
pakku list details MyModule
pakku list repo home
pakku list repo /opt/MyApp MyModule

Options: Specific to list command

details               → Details
repo < name-or-path > → List specific repo

Search distribution on RecMan

pakku Search MyModule
pakku Search count 4 MyModule
pakku Search details MyModule

Options: Specific to search command

count < number > → Number of dists to be returned
details          → Details of dist

Build distribution

pakku build MyModule
pakku build .

Test distribution

pakku test MyModule
pakku test ./MyModule
pakku test xtest ./MyModule
pakku test nobuild ./MyModule

Options: Specific to add command

xtest           → XTest distribution
noxtest         → Bypass xtest
build           → Build distribution
nobuild         → Bypass build

Upgrade distribution

pakku upgrade MyModule
pakku upgrade nodeps  MyModule
pakku upgrade force   in   vendor  MyModule1 MyModule2

Options: Specific to upgrade command

deps            → Upgrade dependencies
nodeps          → No dependencies
exclude Dep1    → Exclude Dep1
deps only       → Dependencies only
build           → Build distribution
nobuild         → Bypass build
test            → Test distribution
notest          → Bypass test
xtest           → XTest distribution
noxtest         → Bypass xtest
force           → Force upgrade
noforce         → No force
precomp         → Precompile distribution 
noprecomp       → No precompile
in < repo >     → Upgrade distribution in repo < home site vendor core /path/to/MyApp >

Download distribution

pakku download MyModule

General Options

pakku dont     add MyModule
pakku async    add MyModule
pakku nocache  add MyModule
pakku norecman add MyModule
pakku nopretty add MyModule
pakku yolo     add MyFailedModule MyModule
pakku pretty   please remove MyModule

Options: Global options control general Pakku behavior

pretty            → Colors
nopretty          → No colors
async             → Run asynchronously (disabled by default because some dists tests will fail if run asynchronously)
noasync           → Dont run asynchronously
nocache           → Disable cache
norecman          → Disable remote recommendation manager
dont              → Do everything but dont do it (dry run)
verbose < level > → Verbosity < debug now info warn error silent >
config  < path >  → Specify config file
please            → Be nice to butterflies
yolo              → Dont stop on errors (e.g. proceed after Test Failure)

Print Help

pakku add
pakku help
pakku help list
pakku help help

Feeling Rakuish Today?

Most of Pakku commands and options can be written in shorter form, for example:

add    → a  upgrade  → u  yolo     → y  nopretty → np  silent → «S 0»
remove → r  download → d  exclude  → x  nodeps   → nd  debug  → «D 1»
list   → l  help     → h  deps     → d  noforce  → nf  now    → «N 2»
search → s  verbose  → v  force    → f  notest   → nt  info   → «I 3»
build  → b  pretty   → p  details  → d  nobuild  → nb  warn   → «W 4»
test   → t  only     → o  norecman → nr nocache  → nc  error  → «E 5»

Did I mention that the below are Pakku commands as well?

pakku 𝛒 ↓ 🔗 🔨 MyModule
pakku 👓 🧚 ↑   MyModule
pakku 🌎        MyModule
pakku ↪
pakku ❓


  • All options can be set in command line or in config file pakku.cnf. Config file will be loaded from command line if specified, or from home directory 「$*HOME/.pakku/pakku.cnf」, if doesn't exist Pakku will use default config file from %?RESOURCES. The only needed config is the recommendation manager <recman>, otherwise Pakku will be able to install local distributions only.

  • In case your terminal font does not support emojis, you can replace them by changing prefix values in the < log > section of your config file ~/.pakku/pakku.cnf:

< log >
  debug prefix DEBUG:

Config file example:

### pakku Config

# global options
# < pakku >
  # pretty           # colors
  # verbose info     # < 0 1 2 3 4 5 >
  # dont             # dont do it (dry run)
  # async            # run asynchronously when possible

# add command options
# < add >
  # deps       # add deps as well < deps nodeps >
  # build      # build            < build nobuild >
  # test       # test             < test notest >
  # force      # force install    < force noforce >
  # to  home   # add to specific repo < home site vendor core /custom/repo/path >

# remove command options
# < remove >
  # from home  # remove from specific repo

# list command options
# < list >
  # details # list   details of dists

## Customize log levels prefixes and colors
# < log >
  # debug prefix D:
  # now   prefix N:
  # info  prefix I:
  # warn  prefix W:
  # error prefix E:

  # debug color green
  # now   color cyan
  # info  color blue
  # warn  color yellow
  # error color magenta

# Recommendation Manager
< recman >


Caching downloaded distributions

When one installs a distribution via pakku add MyDist, Pakku first looks in the local cache to see if there is a downloaded distribution matches MyDist specification, if nothing found in the cache, Pakku then searches the configured RecMan and obtain the latest version of MyDist (e.g. MyDist:ver<0.4.1>), download, cache, and install it.

After sometime when a new version MyDist:ver<0.4.2> is released and available in RecMan, if one try to install MyDist via pakku add MyDist, what happens is Pakku will find MyDist:ver<0.4.1> available in local cache and will install that version because it matches MyDist specification. so one will not get the latest version MyDist:ver<0.4.2>.

There are two ways to avoid this and get the latest version, either specify the version e.g. pakku add MyDist:ver<0.4.2> or disable cache lookup e.g. pakku nocache add MyDist (also, one can permenantly disable cache in config file).

Pakku installs to site repo by default

If the user doesn't have rw permision to site repo, one can change the default repo in the config file, or specify the repo in the command e.g. pakku add to home MyDist

Installing already installed distribution

When trying to install an already installed distribution, Pakku will appear not doing anything and give almost instant -Ofun response signaling a success. May be its better to add a debug message informing the user that the distribution is already installed, but that is not yet there.


Doesn't play nice with libcurl.dll on some windows systems, need to investigate more.


# Pakku depends on libarchive and libcurl

# Requires Rakudo 2022.12  version or later

# Install
git clone
cd Pakku
raku -I. bin/pakku add .

# Install using Pakku
pakku add Pakku:ver<ava-1>

# Install using Zef
zef install Pakku:ver<ava-1>


Thanks to Panda and Zef for Pakku inspiration. also Thanks to the nice #raku community.


Light like a 🧚, Colorful like a 🧚


Haytham Elganiny elganiny.haytham at

Copyright and License

Copyright 2022 Haytham Elganiny

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.


Package Manager for Raku







No releases published


No packages published