Comment 4 for bug 365383

Revision history for this message
kumat (tianye-jinli2000) wrote :

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

You will get the problem resolved.