The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

?1.1GB /home/.cpan

Discussion in 'Workarounds and Optimization' started by harman, Jun 10, 2010.

  1. harman

    harman Registered

    Joined:
    Jan 3, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Have a case where 1.1GB is consumed by /home/.cpan
    Read this thread and this one that says it can be deleted with out any issues.

    I know cpan is used by perl. How do I know if this is actively used by cpanel or if it can be deleted. It is consuming alot of disk space.

    Tia. :)

    cPanel 11.25.0-R46156 - WHM 11.25.0 - X 3.9
    FEDORA 4 i686 vmware
     
    #1 harman, Jun 10, 2010
    Last edited: Jun 10, 2010
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    It is safe to move

    It is safe to move /home/.cpan. I recommend moving it, not deleting it, until you are sure you no longer need it.

    After moving/renaming /home/.cpan, I recommend running the following commands:

    Code:
    # perl -MCPAN -e shell
    cpan> install Bundle::CPAN
    cpan> reload index
    cpan> reload cpan
    cpan> exit
    # /scripts/checkperlmodules --full
    This will make sure that all the sources that CPAN needs are present and up to date, and also that all Perl modules that cPanel needs are installed.

    The CPAN sources should be fetched anyway when checkperlmodules runs, such as during a regular cPanel update, but following this procedure will let you make sure it completes and no problems are detected.

    Once this is finished, it should be safe to remove the old /home/.cpan that you renamed before you started the above procedure.
     
  3. harman

    harman Registered

    Joined:
    Jan 3, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    moved /home/.cpan

    So Did the following Steps:

    # du -ahx --max-depth=1 /home -ahx --max-depth=1
    # mv /home/.cpan /home/.cpanold
    # perl -MCPAN -e shell
    cpan> install Bundle::CPAN
    cpan> reload index
    cpan> reload cpan
    cpan> exit
    # /scripts/checkperlmodules --full
    # du -ahx --max-depth=1 /home -ahx --max-depth=1

    /home/.cpanold = 1.1 gb
    /home/.cpan = 24 mb

    24 mb instead of 1.1 gb sounds better to me. Thanks for your help. I will delete the old one once updater runs a couple times. :)
     
    #3 harman, Jun 10, 2010
    Last edited: Jun 10, 2010
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You are very welcome. That is indeed a very big size difference. I am glad I was able to help.
     
Loading...

Share This Page