4

I'm just curious if anyone has done this before. I'd like to use the database file generated by updatedb as sort of a "cache" for a searching mechanism, but without having to make any external calls to 'locate'.

musashiXXX
  • 4,192
  • 4
  • 22
  • 24
  • 1
    this database format is probably platform-specific and implementation-specific. – ascobol Apr 07 '11 at 13:44
  • 1
    ascobol: Looks like you're at least partly right: "The locate database is not byte order independent. It is not possible to share the databases between machines with different byte order. The current locate implementation understands databases in host byte order or network byte order if both architectures use the same integer size." – Ken Apr 07 '11 at 14:47

2 Answers2

3

Try having a look at this file:

https://github.com/WojciechMula/locatedb

I believe it does what you are looking for.

DrAl
  • 70,428
  • 10
  • 106
  • 108
so12311
  • 4,179
  • 1
  • 29
  • 37
0

There is also plocate. It supports the mlocate db format which is very common. But have a look at the TODO section of the README.rst if it suits your needs.

rtrrtr
  • 563
  • 5
  • 7