Clean up custombuild directory, what can i delete? (need more space?)

janton

Verified User
Joined
Sep 17, 2009
Messages
145
Dear All,

I have directadmin for a long time and never cleaned the custombuild directory, because I never run low on diskspace.
Now it seems my server is more used i need more space, i checked my my hdd and noticed the custom dir:
3.2G ./usr/local/directadmin/custombuild

Time to clean that right?


What can i delete there? and what is the best way?

I see the following files and directories there:

-bash-3.2# ls
APC-3.1.13
APC-3.1.13.tgz
all_locales-1.4.18-20090526.tar.gz
apr-1.5.0.tar.gz
apr-util-1.5.3.tar.gz
autoconf-2.68.tar.gz
automake-1.13.1.tar.gz
build
configure
curl-7.19.5
curl-7.20.0
curl-7.21.3
curl-7.21.4
curl-7.21.6
curl-7.35.0.tar.gz
custom
custombuild.log
dovecot-1.2.1
dovecot-1.2.11
dovecot-1.2.14
dovecot-1.2.15
dovecot-1.2.16
dovecot-2.0.10
dovecot-2.0.11
dovecot-2.0.12
dovecot-2.0.13
dovecot-2.0.9
dovecot-2.2.10.tar.gz
dovecot.boot
dovecot.boot.debian
dovecot.boot.freebsd
dovecot.conf
exim.conf.dovecot.patch
freetype-2.3.12
freetype-2.5.2.tar.gz
httpd-2.0.63
httpd-2.2.15
httpd-2.2.16
httpd-2.2.17
httpd-2.2.18
httpd-2.2.19
httpd-2.2.20
httpd-2.2.26.tar.gz
httpd_2
httpd_2_debian
httpd_2_freebsd
icu4c-4_8_1_1-src.tgz
jpegsrc.v6b.tar.gz
libiconv-1.13
libiconv-1.14.tar.gz
libmcrypt-2.5.8.tar.gz
libpng-1.2.42
libtool-2.4.2.tar.gz
libxml2-2.7.6.tar.gz
libxslt-1.1.28.tar.gz
m4-1.4.16.tar.gz
mhash-0.9.9.9.tar.gz
mime.types
mod_perl-2.0.4.tar.gz
modsecurity-apache_2.5.12.tar.gz
modsecurity-apache_2.5.12.tar.gz.1
mysql
mysql_backups
mysql_backups.log
options
options.conf
package.xml
patches
pcre-7.9
pcre-8.01
pcre-8.02
pcre-8.10
pcre-8.20.tar.gz
php-5.3.28.tar.gz
phpMyAdmin-3.5.8.2-all-languages.tar.gz
phpopt
proftpd
proftpd-1.3.3
proftpd-1.3.3a
proftpd-1.3.3b
proftpd-1.3.3c
proftpd-1.3.3d
proftpd-1.3.4d.tar.gz
proftpd_debian
proftpd_freebsd
roundcubemail-0.9.5.tar.gz
servers.txt
squirrelmail-1.4.22.tar.gz
suphp-0.7.1.tar.gz
versions.txt
webalizer-2.23-08-src.tgz
 
I believe there's a custombuild command which will delete everything it doesn't need, but in any event you should be able to delete any of the tarballs; either version of custombuild should be able re-download any tarballs it needs.

Jeff
 
Time to clean that right?

I don't see anything wrong there, you don't have numerous copies of software with different versions

Anyway if you want to clean it, just try and run

Code:
cd /usr/local/directadmin/custombuild/
./build clean

if after that you still have a number of archives in the directory, then simple remove them one by one or with the following command:


Code:
cd /usr/local/directadmin/custombuild/
rm -fv *.tar.gz

But if you need to free up some space, then you should look into mysql_backups directory. That might have Gbs of backups of your MySQL tables.
 
@zEitEr

Yes can i delete the mysql backups there? as that indeed takes up some GB's
 
Yes, you can remove mysql backups, if you don't need them. build and options.conf are the only 2 files that are required for CB 2.0 to run :) It would re-download other missing files with the next run.
 
By the way the latest versions of CB allow to change the path for MySQL backups, so you might want to store them in /home/mysql_backups for example, where you might have more disk space.
 
What I normally use is

Code:
cd /usr/local/directadmin/custombuild
./build clean
rm -fv /usr/local/directadmin/custombuild/*.tar.gz
rm -fv /usr/local/directadmin/custombuild/*.tgz
rm -fv /usr/local/directadmin/custombuild/*.bz2
rm -fv /usr/local/directadmin/custombuild/mysql/*
 
I'd like to note that compression for mysql backups can be enabled in the options.conf, this should save some space too.
 
Back
Top