How do I reduce the size of mlocate database?

Posted by MountainX on Ask Ubuntu See other posts from Ask Ubuntu or by MountainX
Published on 2012-03-29T21:20:21Z Indexed on 2012/03/29 23:41 UTC
Read the original article Hit count: 882

Filed under:
|
|

I'm out of space on /var

  25G   25G     0 100% /var

It looks like mlocate.db is the problem:

# find . -printf '%s %p\n' | sort -nr | head
13140140032 ./lib/mlocate/mlocate.db.cgLMAM
12409839616 ./lib/mlocate/mlocate.db.MqGeqe

cat /etc/updatedb.conf

PRUNE_BIND_MOUNTS="yes"
PRUNENAMES=".git .bzr .hg .svn"
PRUNEPATHS="/tmp /var/spool /media"
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf"

I don't see anything else to prune. So how can I fix this? Thanks

© Ask Ubuntu or respective owner

Related posts about filesystem

Related posts about space