Create a script using below content:
#!/usr/bin/perl -w
use ExtUtils::Packlist;
use ExtUtils::Installed;
$ARGV[0] or die "Usage: $0 Module::Name\n";
my $mod = $ARGV[0];
my $inst = ExtUtils::Installed->new();
foreach my $item (sort($inst->files($mod))) {
print "removing $item\n";
unlink $item;
}
my $packfile = $inst->packlist($mod)->packlist_file();
print "removing $packfile\n";
unlink $packfile;
Assume you save it as 'rm_perl_mod.pl', run below command as root:
# chmod u+x rm_perl_mod.pl
# ./rm_perl_mod.pl XML::SAX
# apt-get install libxml-sax-expat-perl
Create a script using below content: :Installed; :Installed- >new(); inst->files( $mod))) { packlist( $mod)-> packlist_ file();
#!/usr/bin/perl -w
use ExtUtils::Packlist;
use ExtUtils:
$ARGV[0] or die "Usage: $0 Module::Name\n";
my $mod = $ARGV[0];
my $inst = ExtUtils:
foreach my $item (sort($
print "removing $item\n";
unlink $item;
}
my $packfile = $inst->
print "removing $packfile\n";
unlink $packfile;
Assume you save it as 'rm_perl_mod.pl', run below command as root: sax-expat- perl
# chmod u+x rm_perl_mod.pl
# ./rm_perl_mod.pl XML::SAX
# apt-get install libxml-
You will get the problem resolved.