Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Cleaning out .cpan/build directory

by Tux (Canon)
on May 25, 2011 at 06:37 UTC ( [id://906602]=note: print w/replies, xml ) Need Help??


in reply to Cleaning out .cpan/build directory

If you want to clean the stuff that does not influence cpan (the command), you can clean out even more:

$ cat bin/cpan-clean #!/bin/sh rm -rf $HOME/.cpan/build/* \ $HOME/.cpan/sources/authors/id \ $HOME/.cpan/cpan_sqlite_log.* \ /tmp/cpan_install_*.txt

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Cleaning out .cpan/build directory
by ikegami (Patriarch) on May 25, 2011 at 18:43 UTC

    IIRC, sources (second item) aren't kept if you unset keep_source_where.

    You might also want to remove FTPstats.yml.

Re^2: Cleaning out .cpan/build directory
by Anonymous Monk on May 25, 2011 at 06:40 UTC
    seems like cpan should know to clean build directory ... or use temp for that
      Actually cpan knows how to do that.

      It has a clean command and will clean the .build folder when it gets too big.

      Using the temp area is not such a swell idea since you might want to inspect the files in the .build folder and the temp area has the habit of getting emptied at inopportune moments. At least on Windoze. :(

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        Executables often can't be run from people's temp directory, so it's not an option.

        You could prevent the build folder from getting cleaned automatically by setting a large value for o conf build_cache.

        The help says "clean" is "make clean" and is in the same set with get, make, test, install. That is, it runs make clean in a particular build directory, not delete those build directories themselves.

        Is that not right?

Re^2: Cleaning out .cpan/build directory
by DrHyde (Prior) on May 27, 2011 at 10:20 UTC
    Provided that you don't have a hateful .cpan/MyConfig, then you can blow the whole of .cpan away. That's the first thing I do when any of my boxes start running low on disk space.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://906602]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found