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.

/usr/local/cpanel/src bloat

Discussion in 'Workarounds and Optimization' started by ManuelT, Jul 11, 2012.

  1. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Got an cPanel old server which we are trying to extend the life of so looking at files to clean.

    I've notice a massive chunk of source files under /usr/local/cpanel/src while I'm sure that some will be useful I can't see any reason to need every version of mailman released since 2008!

    Can someone advise what is the best way to clean up this folder?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you post the contents of the folder? If the files aren't that large, there's little point in worrying about most of them (and most of them on my machine anyway aren't large).
     
  3. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    The single biggest subdirectory /usr/local/cpanel/src/3rdparty/gpl it's over half a gig on this machine.

    Code:
    drwxr-xr-x  20 root wheel  4.0K Jun 20 05:54 ./
    drwxr-xr-x   9 root wheel  4.0K Jun 20 05:46 patches/
    -rw-r--r--   1 root root   2.6M Jun 20 05:46 roundcubemail-0.7.2.tar.gz
    -rw-r--r--   1 root root   1.1M Jun 20 05:46 phpPgAdmin-5.0.4.tar.gz
    -rw-r--r--   1 root root   2.0M Jun 20 05:45 freetype-2.4.9.tar.gz
    -rw-r--r--   1 root root    817 Apr 26 05:34 sandy_bridge_test.tar.gz
    -rw-r--r--   1 root root   5.6M Apr 26 05:34 phpMyAdmin-3.4.10.1-all-languages.tar.gz
    -rw-r--r--   1 root root    29M Apr 26 05:34 horde-webmail-1.2.11.tar.gz
    -rw-r--r--   1 root root   5.0M Apr 26 05:34 gsi-sshterm-0.91h.tar.gz
    -rw-r--r--   1 root root   4.6K Apr 26 05:34 Makefile
    drwxrwxr-x  11 root root   4.0K Mar 22 05:42 phpPgAdmin-4.2.3/
    drwxr-xr-x  14 root root   4.0K Nov 23  2011 mailman-2.1.14-1/
    -rw-r--r--   1 root root   7.9M Nov 23  2011 mailman-2.1.14-1.tgz
    drwxr-xr-x  11 root root   4.0K Oct  5  2011 phpPgAdmin-4.2.2/
    -rw-r--r--   1 root root    13M Sep  9  2011 ImageMagick-6.7.1-7.tar.gz
    -rw-r--r--   1 root root    13K Aug  5  2011 squirrelmail_files-1.4.22.tar.gz
    -rw-r--r--   1 root root   649K Aug  5  2011 squirrelmail-webmail-1.4.22.tar.gz
    drwxr-xr-x  14 root root   4.0K Jul 14  2011 mailman-2.1.14/
    drwxr-xr-x   8 root wheel  4.0K Jul 14  2011 ../
    drwxr-xr-x   4 root root   4.0K Jul 14  2011 roundcube_schema/
    -rw-r--r--   1 root root   1.3M Jul 14  2011 rrdtool-1.4.5.tar.gz
    drwxr-xr-x   2 root wheel  4.0K Jul 14  2011 utils/
    -rw-r--r--   1 root root   1.2M Jul 14  2011 awstats-7.0.tar.gz
    -rw-r--r--   1 root root   4.1K Jul 14  2011 README-horde
    -rw-r--r--   1 root root   3.8K Jul 14  2011 README-squirrelmail
    -rw-r--r--   1 root root   4.2M Mar 16  2011 phpMyAdmin-2.11.11.3-all-languages.tar.gz
    -rw-r--r--   1 root root    18M Jan  5  2011 horde-3.1.7p13.cpanel.tar.gz
    -rw-r--r--   1 root root   8.8K Jan  5  2011 swekey.tar.gz
    -rw-r--r--   1 root root   5.0M Oct 14  2010 cairo-1.6.4.tar.gz
    -rw-r--r--   1 root wheel  645K Sep  9  2010 squirrelmail-1.4.21.tar.gz
    drwxr-xr-x  14 root wheel  4.0K Jun  3  2010 mailman-2.1.13/
    drwxr-xr-x  14 root wheel  4.0K Feb 19  2010 mailman-2.1.12/
    -rw-r--r--   1 root wheel  5.4M Feb 19  2010 all_locales-1.4.18-20090526.tar.gz
    -rw-r--r--   1 root wheel  6.8M Feb 19  2010 glib-2.20.0.tar.gz
    drwxr-xr-x   3 root wheel  4.0K Jan 23  2010 webalizer-2.01-10/
    drwxr--r--   3 root wheel  4.0K Jan 23  2010 gd-1.8.4/
    drwxrwxr-x  15 root wheel   12K Jun 10  2009 libxml2-2.6.23/
    drwxrwxr-x   9 root wheel  4.0K Jun 10  2009 libmcrypt-2.5.8/
    drwxrwxr-x   6 root wheel  4.0K Jun 10  2009 stunnel-4.15/
    drwxr-xr-x  14 root wheel  4.0K Jun 10  2009 mailman-2.1.11/
    drwxr-xr-x   5 root wheel  4.0K Dec 28  2008 awstats-6.9/
    -rw-r--r--   1 root wheel  441K Dec 17  2008 pixman-0.11.8.tar.gz
    -rw-r--r--   1 root wheel 1009K Dec 17  2008 pkg-config-0.23.tar.gz
    -rw-r--r--   1 root wheel  1.4M Dec 17  2008 fontconfig-2.6.0.tar.gz
    -rw-r--r--   1 root wheel  2.0M Dec 17  2008 pango-1.20.5.tar.gz
    -rw-r--r--   1 root wheel  1.3M May 28  2008 libmcrypt-2.5.8.tar.gz
    -rw-r--r--   1 root wheel  413K Dec  1  2007 squirrelmail-decode-1.2.tar.gz
    drwxr-xr-x   4 root wheel  4.0K Jun 27  2007 squirrelmail-decode-1.2/
    -rw-r--r--   1 root wheel  577K Jun  6  2007 smartmontools-5.37.tar.gz
    -rw-r--r--   1 root wheel  574K Apr  7  2006 gd-2.0.33.tar.gz
    -rw-r--r--   1 root wheel  810K Mar 25  2006 jta26-src.jar
    -rw-r--r--   1 root wheel  486K Mar 25  2006 stunnel-4.15.tar.gz
    -rw-r--r--   1 root wheel  247K Mar 25  2006 webalizer-2.01-10-src.tar.bz2
    -rw-r--r--   1 root wheel  252K Mar 22  2006 gd-1.8.4.tar.gz
    -rw-r--r--   1 root wheel  1.8M Mar 22  2006 interchange-4.8.6.tar.gz
    -rw-r--r--   1 root wheel  1.8M Mar 22  2006 interchange-4.9.3-200211090658.tar.gz
    -rw-r--r--   1 root wheel  2.0M Mar 22  2006 interchange-5.0.0.tar.gz
    -rw-r--r--   1 root wheel  253K Mar 22  2006 jta25b.jar
    -rw-r--r--   1 root wheel  4.4M Mar 22  2006 libxml2-2.6.23.tar.gz
    -rw-r--r--   1 root wheel  249K Mar 22  2006 mindtermsrc-v121.tgz
    drwxr-xr-x   6 root wheel  4.0K Apr 25  1999 melange-1.10/
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could remove the old mailman folders. Unfortunately, some of the others that are only one file or archive, if you run a forced /scripts/upcp, you'll redownload the files again.
     
  5. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Tristan, I'm not suggesting that this folder is entirely useless I'm just saying it's one that after several years of running cPanel get's in a real mess as cPanel doesn't clean anything up.

    I have no objection to needed items being there it's a matter of what's a decent clean up routine.

    A: Delete everything and let upcp download what it want's next time it's run.
    B: Delete everything older than X.
    C: Something else.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I'd say delete everything older than X, although please do make a backup of the entire contents of this folder somewhere and keep it for around a month just in case. After deleting everything older than X, run a full cPanel backup to see what it is going to re-add so you know how much space it will take.

    You are welcome after that to possibly add a cron that will periodically clean up the folder for any files that are older than a set time period.
     
  7. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Decided to remove it all and do a upcp --force, dropped the folder size from half a gig too 100M.
     
Loading...

Share This Page