Re: Uninstalling a PERL module
Thanks for the reply, actually when I tried installing only module, my test was failing, later I figure out its because of the version module that I have installed in my system. Thats why I was trying to uninstall the module and see how only module react. Thank you all for your help. --- oryann9 [EMAIL PROTECTED] wrote: --- a_arya2000 [EMAIL PROTECTED] wrote: Hello, does anyone know what is the most effective way of uninstalling perl module? Thank you. Why would you want to do such a thing? Just take the path to this module out of @INC by editing your .profile and or PERL5LIB variable, unless you think its corrupt. perl -le 'print join(\n, @INC);' If you really want to remove this module do a backup first, tar cvf module.tar /path/to/module, then rm -rf /path/to/module Here is a script to see what is installed. ##-- Show me all installed Modules --## use File::Find 'find'; use File::Spec::Functions; my $i=0; print Your installed modules on $^O are:\n; print - x 38,\n; find { wanted = sub { print ++$i, \t$_\n if /\.pm\z/ }, no_chdir = 1}, @INC; Hope that helps! :) Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
Re: Uninstalling a PERL module
On 6/22/07, a_arya2000 [EMAIL PROTECTED] wrote: Hello, does anyone know what is the most effective way of uninstalling perl module? The most effective way is first to install the module into a temporary directory. When you're done using it, you can simply delete the directory and its contents. If you didn't install it into a special directory, the most effective way is to delete everything in that directory, then reinstall the modules you want. And perl too, if necessary. Then again, the most effective technique of all may be simply to declare the module to be uninstalled in a loud, firm voice, as often as necessary. It still takes up space on disk, of course, but if you're already ignoring any bug reports you're seeing about the module, you shouldn't notice any additional problems. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
Re: Uninstalling a PERL module
On 6/22/07, a_arya2000 [EMAIL PROTECTED] wrote: Hello, does anyone know what is the most effective way of uninstalling perl module? Thank you. If you installed the module through your system's package manager then uninstall it the same way. If you installed it though CPAN, well, the most complete way is to uninstall Perl, delete the install directory, reinstall Perl and all of the modules you want to keep. CPANPLUS seems to offer an uninstall option, but I have heard there are complaints that it is not complete and may break other modules. Why do you uninstall a module in the first place? This is something I have never understood. I have tons of modules installed and the everything in @INC (baring the current directory) takes up less than 50 megs, so it can't be space issues. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
Re: Uninstalling a PERL module
On 6/22/07, Chas Owens [EMAIL PROTECTED] wrote: snip Why do you uninstall a module in the first place? This is something I have never understood. I have tons of modules installed and the everything in @INC (baring the current directory) takes up less than 50 megs, so it can't be space issues. snip I need more caffeine. That should have been Why do you want to uninstall a module in the first place? and (barring the current directory) I am not even sure how to bare a directory, but it sounds nasty. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
Re: Uninstalling a PERL module
On 6/22/07, Chas Owens [EMAIL PROTECTED] wrote: On 6/22/07, Chas Owens [EMAIL PROTECTED] wrote: snip Why do you uninstall a module in the first place? This is something I have never understood. I have tons of modules installed and the everything in @INC (baring the current directory) takes up less than 50 megs, so it can't be space issues. snip I need more caffeine. That should have been Why do you want to uninstall a module in the first place? and (barring the current directory) I am not even sure how to bare a directory, but it sounds nasty. Just because I was curious* about exactly how much space was eaten up by my Perl modules: #!/usr/bin/perl use strict; use File::Find; my $size; find( sub { $size += (stat $File::Find::name)[7] }, grep { $_ ne '.' } @INC #ignore current directory ); my $k = $size/1024; my $m = $k/1024; my $g = $m/1024; printf Modules take up %d bytes or %.2f k or %.2f megs %.2f gigs\n, $size, $k, $m, $g; * one-liner: perl -MFile::Find -le '[EMAIL PROTECTED];find(sub{$s+=(stat)[7]},@INC);print$s' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
Re: Uninstalling a PERL module
--- a_arya2000 [EMAIL PROTECTED] wrote: Hello, does anyone know what is the most effective way of uninstalling perl module? Thank you. Why would you want to do such a thing? Just take the path to this module out of @INC by editing your .profile and or PERL5LIB variable, unless you think its corrupt. perl -le 'print join(\n, @INC);' If you really want to remove this module do a backup first, tar cvf module.tar /path/to/module, then rm -rf /path/to/module Here is a script to see what is installed. ##-- Show me all installed Modules --## use File::Find 'find'; use File::Spec::Functions; my $i=0; print Your installed modules on $^O are:\n; print - x 38,\n; find { wanted = sub { print ++$i, \t$_\n if /\.pm\z/ }, no_chdir = 1}, @INC; Hope that helps! :) Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
Re: Uninstalling a PERL module
On 06/22/2007 03:46 PM, a_arya2000 wrote: Hello, does anyone know what is the most effective way of uninstalling perl module? Thank you. As you know, going into the build directory for a module and executing make uninstall doesn't yet work for CPAN-installed modules :-) For most modules, there is a .packlist file that lists all of the files that were installed by that module. Delete every file listed in the .packlist, then delete the .packlist file itself, and you've uninstalled the module. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/