Reputation: 165
I was just wondering how one might uninstall a Perl6 package installed by Panda, as it seems to be missing the 'remove' or 'uninstall' command.
Thank you!
Upvotes: 4
Views: 138
Reputation: 165
I forget where I found this code for removing something installed via 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);
}
Upvotes: 2
Reputation: 903
As of today, you cannot remove a package with panda; the alternate package manager zef does support this, however.
Upvotes: 2