1

I installed perl5 using perlbrew using the following command

perlbrew install -v perl-5.18.2 -Dusethreads -n --as perl-5.18.2_WITH_THREADS

After the installation, I find that this folder "~/perl5/perlbrew/build" takes 182MB. Is this folder necessary? If not could I remove that?

alpha_cod
  • 1,933
  • 5
  • 25
  • 43
  • Rule of thumb: rename it. If it doesn't break anything after a few days, delete it. – Mr. Llama Dec 15 '14 at 08:42
  • I could do that, but it still leaves a possibility of me not running into an issue in the few days I wait, but some issue could have been created due to this action right. Is there a way to know concretely if this folder is useful or not after install? – alpha_cod Dec 15 '14 at 08:44

2 Answers2

4

It is not necessary, and you can safely remove it.

Calle Dybedahl
  • 5,228
  • 2
  • 18
  • 22
  • 2
    You can also nuke the tarballs in `dists`. (These are kept around to save `perlbrew` from having to download them again.) – ikegami Dec 15 '14 at 14:06
  • Oh...Thanks a lot. I've been trying to optimize disk space used by a perl docker image. Deleting ./build released a whopping 182MB and ./dists another 14MB for perl 5.18.2. Thanks a ton. – alpha_cod Dec 16 '14 at 07:26
4

If you run

perlbrew clean

that will automatically cleanup the build and dist directories.

Ask Bjørn Hansen
  • 6,784
  • 2
  • 26
  • 40