clearairturbulence
clearairturbulence

Reputation: 165

How to remove Perl6 package installed by Panda

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

Answers (2)

clearairturbulence
clearairturbulence

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

Coke
Coke

Reputation: 903

As of today, you cannot remove a package with panda; the alternate package manager zef does support this, however.

https://github.com/ugexe/zef

Upvotes: 2

Related Questions