Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

delete cpan files?

by notgeekenough (Novice)
on Jan 03, 2009 at 20:43 UTC ( #733946=perlquestion: print w/ replies, xml ) Need Help??
notgeekenough has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm not a perl user but I'm trying to install sw that uses extensive perl. I've been adding required modules through sudo perl -MCPAN -e install WWW:Mechanize' My question is about the stuff left behind in /home/dale/.cpan. Can I delete it? the file Metadata is huge as are the files in /home/dale/.cpan/sources/modules. Thanks

Comment on delete cpan files?
Re: delete cpan files?
by Corion (Pope) on Jan 03, 2009 at 20:53 UTC

    Yes. This is just a cache and the cpan utility stores your configuration there. You can always delete .cpan/build and .cpan/sources, which is where the bulk lives.

      Thanks a lot Corion
Re: delete cpan files?
by bcrowell2 (Friar) on Jan 03, 2009 at 22:07 UTC
    The sudo makes me think you're using ubuntu. If so, then you're much better off using ubuntu's packages rather than CPAN. E.g., sudo apt-get install libtest-www-mechanize-perl. CPAN and apt don't know about each other, and you can get yourself all tied up in knots by trying to mix the two. E.g., bad stuff can happen when your system upgrades to a newer version of perl.

      You have a point. But standard wisdom seems to be that you'd be even better off installing a separate copy of Perl (probably from source) and using CPAN to customize that rather than messing with the system's Perl (and this is true for any system with package management that ships with a version of Perl, not just Ubuntu). Though, getting by with the system's Perl can certainly be a simple solution that will likely work well enough for a while. Usually, you will eventually get to a point where using the system's Perl introduces conflicts, but it may take a while for that to happen for some people.

      - tye        

        I'm not the OP but I have a related question.
        I messed up my module installation(that I think I can fix) and am now looking for smarter ways to handle my Linux Perl installation. I've seen instructions for installing multiple versions of Perl, but how does that affect my ability to use CPAN or CPANPLUS?
        One document for manual module installation indicated to edit Makefile.PL with the non-standard path where I would store modules. Doing that for each manually installed module would be a pain. How would CPAN/CPANPLUS handle this?
        Overall what I want to do is leave the system Perl installation alone, install another version somewhere on the filesystem(probably in /opt/perl.ver ) and from that point on install as much as possible (modules)in my home directory.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://733946]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2014-09-20 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls