On Ubuntu 22.04 LTS, I can install Rakudo (formerly known as Perl 6) like this:
sudo apt install rakudo
Then when I run raku on the command-line, I get this output:
$ raku
Welcome to Rakudo™ v2022.02.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.02.
You may want to zef install Readline, zef install Linenoise, or zef install Terminal::LineEditor or use rlwrap for a line editor
To exit type 'exit' or '^D'
>
I do want to have line editing features for the Raku REPL. What is the best option here for Ubuntu? Should I install a package with zef or with sudo apt? Where do the packages get installed and how do I undo that?
If I try to run zef, I get a command not found error. If I run sudo apt install perl6-zef, I get this error:
E: Unable to locate package perl6-zef