locate-in-alternate-database

locate-in-alternate-database is an interactive compiled Lisp function in `locate.el'.


(locate-in-alternate-database SEARCH-STRING DATABASE)

Run the GNU locate program, using an alternate database.

This command only works if you use GNU locate. It does not work
properly if `locate-prompt-for-command' is set to t. In that
case, you can just run the regular `locate' command and specify
the database on the command line.