Questions tagged [updatedb]

The tool to update the search database used by locate for finding files or paths. This tool is typically run daily to keep the index up recent changes in the filesystem.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

How could updatedb run quickly by avoiding doing full disk scans (maybe not mtime)

How is it possible for updatedb to run very fast by avoiding doing full disk scans? Since mtime of parent folder is not affected by files in subfolders. In Why does the updatedb program run so fast? @...
srtie's user avatar
  • 3
1 vote
1 answer
77 views

Just as there is "locate" to "find". Is there a database for a faster "grep"?

locate (or rather, updatedb) is somewhat simple: it takes the output of find for the required paths (usually '/'), sorts it, and then compresses it with a front-compression tool (frcode), in which the ...
Sebastian Carlos's user avatar
0 votes
1 answer
1k views

Does 'apt update' also update nmap's scripts?

I'm building a Linux OVA on a VM to scan stuff with nmap. I'm using cron to keep my packages up to date: sudo apt-get update sudo apt-get upgrade sudo apt-get autoremove It's from my understanding ...
Asteck's user avatar
  • 5
1 vote
1 answer
378 views

`plocate` couldn't find results in my home dir but `mlocate` could. How to search results in home dir?

Currently I'm trying to migrate from mlocate to plocate. I'm using mlocate in my script (note: locate is aliased to either mlocate or plocate depending which one I've installed). Successfully searched ...
kohane15's user avatar
  • 154
0 votes
0 answers
312 views

fdopendir: Permission denied when running updatedb

I'm trying to index the files on my NAS (It's a TerraMaster F4-210) with the command: updatedb -l 0 -o /home/jake/nas-index.db -U /mnt/nas/ After running for a little while it dies with the error: ...
Jistanidiot's user avatar
3 votes
1 answer
514 views

locate and updatedb do nothing in Linux Mint

I run Linux Mint 21. Currently the locate command always returns no results, and updatedb always returns immediately. The database is sized no more than a few kilobytes. I have verified that the ...
brainchild's user avatar
2 votes
1 answer
103 views

Can updatedb keep localpaths for removable drives that aren't plugged in?

I run updatedb like this: updatedb --localpaths="/a /b" /a is a removable drive. /b is the local hard drive. Although /a's not always accessible to me, I frequently want to run locate to ...
Daniel Kaplan's user avatar
0 votes
0 answers
103 views

Does the database created by updatedb expire after a certain amount of time?

A few days ago, when I ran locate to find some files in my home filesystem, it didn't return anything. It seemed to me that it had only indexed the files in the root filesystem but not the home ...
Tim's user avatar
  • 102k
-2 votes
1 answer
334 views

`updatedb` to grab everything possible

updatedb.findutils and updatedb.mlocate don't seem to grab everything possible. How can they be instructed to include all files? $ printf 'locate: %s, smaller than find: %s\n' "$(sudo locate '*' |...
aac's user avatar
  • 75
0 votes
1 answer
514 views

updatedb does not prune paths

I have a timeshift user with backups in my /home. Every time after boot when I search for something with locate, all the timeshift directories are shown to me. To fix this issue, I added /home/...
hmaier's user avatar
  • 53
0 votes
1 answer
88 views

Can I use locate's functionality to find symlinks faster?

I've just read: How to find all symbolic links pointing to any file/directory inside a given directory but that is pretty slow. Now, on typical Linux systems, a filesystem database-of-sorts is ...
einpoklum's user avatar
  • 9,525
-1 votes
1 answer
200 views

Can GNU FindUtils be configured to skip a directory?

When I run updatedb I get an error "Permission denied" to /run/user $ sudo updatedb /usr/bin/find: '/run/user/1000/doc': Permission denied Note my version of updatedb comes from the package ...
Evan Carroll's user avatar
  • 30.9k
3 votes
2 answers
633 views

updatedb can not create temporary file for a custom database file

I am trying to create a custom mlocate db for my home directory. When running the updatedb it complains about inability to open a temporary file. 55;~/>uname -a Linux yoga 4.12.14-lp151.28.59-...
R. Matveev's user avatar
-8 votes
1 answer
54 views

I am having problem will installing development [closed]

I am nod able to install mono development even after i gave apt get update. My system is asking for Mono depends on =6.10.0.104-0-xamarin16+debian10b1 Its also asking Hit https://download.mono-...
Reshama K s's user avatar
1 vote
1 answer
502 views

Updatedb include the path pointed by symbolic link

I have created mlocate database with the contents of a particular folder. I see that the updatebd doesn't include the path pointed by the symbolic links in the database. How can I include the path ...
Porcupine's user avatar
  • 1,902
1 vote
1 answer
373 views

Updatedb on samba mounted shares

I have a few directories mounted from a samba share server (my lan storage) and I would like to run updatedb on them. I use to successfully run such command to do that: updatedb -l 0 -o ~/.myDbFile....
buscon's user avatar
  • 21
2 votes
1 answer
3k views

How can I change the configuration of /etc/updatedb.conf file?

Based on the man page of the command "updatedb", we can change and override the configuration of /etc/updatedb.conf using the below commands: --prune-bind-mounts FLAG Set ...
Aref Alikhani's user avatar
0 votes
1 answer
1k views

unable to update application permission denied

Hi there i new to linux and I just enable Raid 10 as a result i can only connect through a putty session and not remote desktop, everything was working fine untill i followed this article https://...
Nick's user avatar
  • 1
1 vote
1 answer
140 views

Updatedb findutils searches in a folder named 'alex'. What does it mean?

Everyday at some minutes after midnight the updatedb.findutils run to index some files. It's a program, which comes with Ubuntu. Now I wondered what this program does and found this. root 12500 ...
syss's user avatar
  • 701
27 votes
2 answers
4k views

Why does the `updatedb` program run so fast?

Usually when I have programs that are doing a full disk scan and going over all files in the system they take a very long time to run. Why does updatedb run so fast in comparison?
hugomg's user avatar
  • 5,777
0 votes
0 answers
167 views

How make updatedb ignore ~ backup files

updatedb has options to exclude names. But how get it to exclude by part of a name - eg. the pattern *~ ?
markling's user avatar
  • 213
28 votes
3 answers
11k views

What kind of database do `updatedb` and `locate` use?

The locate program of findutils scans one or more databases of filenames and displays any matches. This can be used as a very fast find command if the file was present during the last file name ...
Tim's user avatar
  • 102k
8 votes
2 answers
4k views

How to fix "updatedb: can not find group ` mlocate'" on entware?

I have installed the mlocate package on Asus RT-N56U running Padavan with Entware-ng, which is based on OpenWrt. This embedded Linux distribution has SSH enabled. My locate results are out of date. ...
Pro Backup's user avatar
  • 4,924
0 votes
4 answers
92 views

How can I apply -v after I have already executed a command?

I'd like to watch the progress of a command that I know will take about six hours. I ran an update script and forgot to use -v (or whatever I should have done to "watch" the progress) so I have no way ...
Christia's user avatar
  • 215
1 vote
1 answer
1k views

sudo apt-get update doesn't work on Linux Mint 17.1

I am trying to update my Linux Mint 17.1. But if I give this commands, sudo apt-get update it is giving the following error. E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource ...
David's user avatar
  • 731
11 votes
1 answer
2k views

How is updatedb so much faster than find?

How is updatedb so much faster than find? Here's a timed comparison between updatedb and a find command that does a seemingly similar task. compare.sh #!/usr/bin/env bash cmd="sudo updatedb" echo $...
Praxeolitic's user avatar
  • 1,678
1 vote
1 answer
161 views

Make updatedb not change access times

Can I keep updatedb on but prevent it from changing atimes? I want to automatically tar up repos that haven't been accessed (by me, not some daemon) for a certain period of time.
Petr Skocik's user avatar
  • 28.9k
0 votes
1 answer
283 views

Script for update

I have a script used for update : OLD="int 10" NEW="int 20" i=0 DPATH="/home" for f in $DPATH do sed -i "s/$OLD/$NEW/g" $f let i++ echo "modified:" $f done what i need according to my old ...
toto's user avatar
  • 139
4 votes
1 answer
1k views

Updatedb unrecognized option '--localpaths='

I am attempting to update a single directory I created. I'm using updatedb so it will be found by the locate command. Command used: updatedb --localpaths='/frodo/lib/modules/3.12.3-031203-generic/...
iyrin's user avatar
  • 1,895
11 votes
3 answers
15k views

How to add specific directories to "updatedb" (locate) search path?

I keep my digital music and digital photos in directories in a Windows partition, mounted at /media/win_c on my dual-boot box. I'd like to include those directories—but only those directories—in the ...
ionh's user avatar
  • 143
2 votes
1 answer
1k views

updatedb for a beginner

The updatedb command, as I understand it, is basically the utility that keeps the mlocate.db database file updated. And it's a good idea to keep it updated regularly. For that matter, I've kept a ...
coffeemonitor's user avatar
2 votes
0 answers
1k views

Linux mint update problem

I have a problem while doing updates. If I type sudo apt-get updates I will get the following: Err http://ppa.launchpad.net saucy/main Sources ...
user2239655's user avatar
29 votes
5 answers
29k views

Can I just disable updatedb?

Is updatedb necessary at all? I never use locate and my servers tend to have dozens of millions of files which usually makes updatedb to run for a long time and consume I/O needed by MySQL and/or ...
matt's user avatar
  • 537
9 votes
2 answers
9k views

why updatedb command takes too much time?

I have read that to run locate command on CYGWIN first I need to run the following command. updatedb --localpaths=c:/ what this command exactly do as I run this on CYGWIN and it is taking too much ...
Elvin's user avatar
  • 881
1 vote
1 answer
475 views

How can I know how long it takes to run updatedb daily job?

I'm using CentOS6.4 and updatedb is running as a daily job. What should I do if I want to know how long it takes for updatedb to run?
ironsand's user avatar
  • 5,215
3 votes
3 answers
3k views

How to monitor directory/file changes to rebuild index?

Just moved to Ubuntu 12.04 from Windows 7. Under Win 7 I use "Everything" to search files and directories, it can build the index database and update it once any file or directory changes. I'm very ...
ChandlerQ's user avatar
  • 141
23 votes
2 answers
33k views

updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'

I go to use the updatedb command to update the index and I get updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db' fyi The locate command is working, e.g. $ locate Index.xml /...
Michael Durrant's user avatar