Miloslav Trmac wrote:
Jim Cornette wrote:
The notes referenced the below:
7.1.4. Enabling the slocate Database
The database needed by the locate utility is no longer created by default. Enable the database creation by setting DAILY_UPDATE to yes in /etc/updatedb.conf if you want to use locate.
This is not correct any more, mlocate's updatedb actually terminates with an error if such a variable is defined in /etc/updatedb.conf. Mirek
The updatedb.conf file did not look anything close to what the reference in the release notes described. I left the file untouched.
As a correction to running locate immediately after firstboot with results, it appears that my sysyem had to be on longer than that for the database to update. mlocate now runs updatedb daily. References to slocate in any documentation should be removed, except for historical or comparative references.
cat /etc/cron.daily/mlocate.cron #!/bin/sh nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }') renice +19 -p $$ >/dev/null 2>&1 /usr/bin/updatedb -f "$nodevs"
Jim