浏览由updatedb (locate) 创建的文件数据库?

typ*_*ype 3 nautilus tracker locate updatedb

使用索引外部驱动器后,updatedb -l 0 -o db_file -U source_directory我想知道是否已经有像 Nautilus 这样的(GUI)浏览器可以离线浏览索引文件。

注意:locate -d DB .给出完整的文件列表。

另外:DB 是什么格式——sqlite?

wal*_*tor 5

我不确定您所说的offline是什么意思,但是,如果您将您的内容写入db_file始终安装的位置,即使未安装索引驱动器,您也应该能够搜索它。

DB 是 mlocate 格式,似乎没有足够的额外信息值得一个 GUI。这是我所做的调查(使用来源,卢克!):

# Where is the locate executable?
type -p locate
# What type of file is it?
file $( type -p locate )
# follow the links
file /etc/alternatives/locate
# 
file /usr/bin/mlocate
# Which package owns /usr/bin/mlocate?
dpkg -S /usr/bin/mlocate
# I keep sources in this directory tree
cd src
# install the apt-src package
sudo apt-get install apt-src
# get the source for mlocate
apt-src install mlocate
# inspect mlocate
cd mlocate-0.23.1/
ls
ls src
less src/*
ls doc
man doc/mlocate.db.5 
# clean up
cd ..
apt-src remove mlocate
Run Code Online (Sandbox Code Playgroud)