Rlocate
From ArchWiki
rlocate is an implementation of the locate command that is always up-to-date. The database that the original locate uses is usually updated only once a day, so newer files cannot be located right away. The behavior of rlocate is the same as slocate, but it also maintains a diff database that gets updated whenever a new file is created. This is accomplished with rlocate kernel module and daemon. The rlocate kernel module can be compiled only with Linux 2.6 kernels.
First install rlocate and rlocate-utils, which can be found in the community repository. Then add yourself and all users that should be able to use it to the group rlocate using:
gpasswd -a username rlocate
Then, change your /etc/rc.conf to load rlocate, this is how it should look like (you can keep your other modules of course)
MODULES=(rlocate)
and add rlocate to the daemons on startup
DAEMONS=(rlocate)
To make the changes immediately, issue these commands with root (su or sudo):
modprobe rlocate /etc/rc.d/rlocate start
And logout/login to update your groups, to know if you are in the group rlocate right now, use the command
groups
That's almost it. You have to issue the command
updatedb
to initialize the database, if you notice slowdowns of rlocate, just run this command again, it will optimize the database kept by rlocate, this happens by /etc/cron.daily/rlocate automatically though. You can now use rlocate like:
locate rc.conf