When upgrading rakudo version using rakubrew, is pretty easy to change versions, but I wnat to know if it is posible to import raku modules from the older version to the new version. doign zef install automatically:
to update:
rakubrew build 2020.10
but then:
❯ raku
Welcome to ™ v2020.10.
Implementing the ™ programming language v6.d.
Built on MoarVM version 2020.10.
You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor
To exit type 'exit' or '^D'
so I need to install all modules that I currently use:
rakubrew build-zef zef install Sparrow6 zef install Linenoise
so exists any file .zef or .rakubrew or something that checks to maintain this modules automatically
You can get the list of installed modules using
zef list --installed
. Note you probably want to ignore theshare/perl6
repo, as theCORE
module included in it is specific to each version of rakudo.see: https://github.com/ugexe/zef#list-from
Alternatively you can use the following one-liner to get a list:
Once you have chosen a way to create a list of what needs to be installed you can just pass that list to
zef
(although your shell may require you to quote names passed in explicitly on the command line)