Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 663
  • Last Modified:

how to uninstall module from CPAN

hi guys,

i installed XML::LibXML using

cpan> install XML::LibXML

how can i remove it from CPAN

i used u XML::LibXML, but reply was module not fount

What shall I do to remove it
0
uknet80
Asked:
uknet80
3 Solutions
 
yjchong514Commented:
Manually you can remove:

/usr/local/lib/perl5/site_perl/5.8.X/Module/Module.pm
OR
/usr/local/lib/perl5/site_perl/5.8.X/Module.pm

depending on the module. (the path might be different on your system, check: perl -e 'print join("\n", @INC);' )

Also see:
http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules

0
 
Kim RyanIT ConsultantCommented:
cpan utility does not offer this but you could use cpanplus instead,  http://search.cpan.org/~bingos/CPANPLUS-0.9104/bin/cpanp .
0
 
a1jCommented:
1. in site_perl directory (/usr/lib/perl5/site_perl or /usr/local/lib/perl5/site_perl) do this

find . -name .packlist

2. open up packlist from directlry with the cpan module you want to delete

3. delete all files mentioned in .packlist, packlist itself and directory that contains it IF it is empty.
0
 
uknet80Author Commented:
thanks guys for your contributions.
0
 
yjchong514Commented:
You 're welcome!
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Tackle projects and never again get stuck behind a technical roadblock.
Join Now