in reply to Re: uninstalling modules
in thread uninstalling modules
thanks again!
Cxx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: uninstalling modules
by gellyfish (Monsignor) on Jul 20, 2004 at 17:09 UTC | |
No it's not you at all. I have made a patch for ExtUtils::Installed that will allow you to supply a list of locations which are outside the perl install prefix - I need to add some tests and change the documentation before I send it to p5p but this: Will allow you to do something like: where I have installed the module 'Foo' with a PREFIX of '/home/jonathan/foo' /J\ | [reply] [d/l] [select] |
by CassJ (Sexton) on Jul 21, 2004 at 12:44 UTC | |
Can I change because $sub (in ExtUtils::Installed->new)loops through the @dir array and sets $self->{module}{packlist} so if we push them on then if a module is installed in the dir you specified and in say /usr/local, we will always get back the packlist for /usr/local - which isn't very helpful if you want to uninstall something in a local directory. If you want the /usr/local version, just don't give a local dir in the call to new. If that change is OK, then I wrote a quick thing for easy command line uninstall. Spot any glaring errors?
| [reply] [d/l] [select] |
by gellyfish (Monsignor) on Jul 21, 2004 at 13:08 UTC | |
You have to watch the order the things go on the @dirs because it does my $archlib = @dirs[-1]; after the paths have been munged. I only did that for convenience and not special case it at that point. But the script looks like it should work fine. /J\ | [reply] [d/l] |
by CassJ (Sexton) on Jul 21, 2004 at 13:46 UTC | |
by gellyfish (Monsignor) on Jul 21, 2004 at 13:51 UTC | |
| |