Every time I opened catfish I was prompted to update the database as it was never updated. I was updating this with administrative rights, but after closing and opening the application the same message was displayed.
The catfish utility is based on locate and find and the locate database is updated by the updatedb command.
The man page of updatedb for my debian system says:
--output=dbfile
The database file to build. Default is system-dependent. In Debian GNU/Linux, the default is /var/cache/locate/locatedb.
So when I was updating the database from catfish, the database was updated but it was not at the location that catfish would use to lookup.
In the version 1.2.2 of catfish I was unable to find a configuration option for updatedb, so the database update is done now from the shell prompt (in the future a cron entry probably) with the command:
$ sudo updatedb --output=/var/lib/locate.findutils/locate.findutils.db
Prior to this I had to create as user root the folder /var/lib/locate.findutils
After doing this catfish does not complain about the database needing to be refreshed.
No comments:
Post a Comment