How to remove the Perl6 package installed by Panda

I'm just wondering how you can uninstall the Perl6 package installed by Panda, because there seems to be a "delete" or "delete" command missing.

Thank!

+4
source share
2 answers

To date, you cannot remove a package using panda; The alternative zef package manager does support this.

https://github.com/ugexe/zef

+2
source

I forgot where I found this code to remove something installed through Panda, but it works amazingly.

#!/usr/bin/env perl6
use v6.c;

sub MAIN($short-name, :$ver = True, :$auth = True, :$api = True) {
    my $comp-unit = $*REPO.resolve(CompUnit::DependencySpecification.new(:$short-name, :$ver, :$auth, :$api));
    $comp-unit.repo.uninstall($comp-unit.distribution);
}
+2
source

Source: https://habr.com/ru/post/1651446/


All Articles