> On 9 Aug 2022, at 13:53, Fernando Santagata <nando.santag...@gmail.com> wrote:
> 
> Hello,
> 
> I'm trying to uninstall old versions of some modules; it looks like it's 
> working but in reality it isn't. For example, but it's not limited to just 
> this module:
> 
> $ zef list --installed|grep CBOR
> ===> Found via /opt/rakudo-pkg/share/perl6/core
> ===> Found via /home/nando/.raku
> CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>
> CBOR::Simple:ver<0.1.2>:auth<zef:japhb>
> 
> $ zef uninstall 'CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>'
> ===> Uninstalled from /home/nando/.raku
> CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>

What does

    raku -e 'use CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>'

say after you've done this?   Does it still load, or does it give an error?


> $ zef list --installed|grep CBOR
> ===> Found via /opt/rakudo-pkg/share/perl6/core
> ===> Found via /home/nando/.raku
> CBOR::Simple:ver<0.1.1>:auth<zef:japhb>:api<0>
> CBOR::Simple:ver<0.1.2>:auth<zef:japhb>

If the above gave an error, then the listing is incorrect.


> $ raku --version
> Welcome to Rakudo™ v2022.07.
> Implementing the Raku® Programming Language v6.d.
> Built on MoarVM version 2022.07.
> $ zef --version
> v0.13.8
> 
> It started when I was using Rakudo v2022.06, but I hoped that upgrading to 
> the next version would solve the problem. Alas, no luck.

Did you create an issue for it?  If not, how would anybody be able to know of 
your problem?


> All I can say is that when I install a new Rakudo version I always run 
> cleanup-precomp . I don't know whether this might alter the local zef DB so 
> that I can't uninstall modules anymore.

cleanup-precomp only removes precompiled bytecode files.  It doesn't touch 
anything else.  In the worst case, some modules would need to be precompiled 
again, causing some delay.


> Has anyone had the same problem?

FWIW, I cannot reproduce the problem locally  :-(


Liz

Reply via email to