Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Having indexed external drives using updatedb -l 0 -o db_file -U source_directory I wonder whether there is already a (GUI) browser like Nautilus to navigate offline through the indexed files.

Note: locate -d DB . gives the whole list of files.

Plus: What format are the DBs -- sqlite?

share|improve this question
up vote 4 down vote accepted

I'm not sure what you mean by offline, but, if you write your db_file to an always mounted location, you should be able to search it even if the indexed drive is not mounted.

The DBs are mlocate format, and don't seem to have enough extra information to be worth a GUI. Here's what I did to investigate (Use the Source, Luke!):

# 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 src
less src/*
ls doc
man doc/mlocate.db.5 
# clean up
cd ..
apt-src remove mlocate
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.