How to disable updatedb on Linux / CentOS?

Open /etc/cron.daily/mlocate.cron and comment all the lines and save the file.

You can also exclude certain directories by including them in PRUNEPATHS value in /etc/updatedb.conf file.