Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Dumping COMPLETE slocate (updatedb) database?
Date: Sun, 10 Jul 2005 05:12:21
Message-Id: 42D0ACFC.3010907@mid.alexander.skwar.name
1 Hello.
2
3 Because I've lost some filesystems recently, I'd like to find out,
4 what I've *exactly* lost. To do that, I'd like to read and *print*
5 (on screen) the /complete/ slocate/updatedb database from
6 /var/lib/slocate/slocate.db.
7
8 But when I "locate" something, the result is only printed if the
9 file actually right now exists.
10
11 Is there some way to dump the slocate.db? Or to modify the
12 "locate" binary, so that this check is not done?
13
14 [06:55:09 alexander@server:~] $ locate --version
15 Secure Locate 2.7 - Released January 24, 2003
16 [06:56:49 alexander@server:~] $ epm -qf `which locate`
17 slocate-2.7-r8
18 [06:57:04 alexander@server:~] $ uname -a
19 Linux server 2.6.12-ck3.009.reiser4_rc5-mm2.no-nfsv4.genkernel #1 Sat Jul 9 13:01:17 CEST 2005 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux
20
21 Thanks,
22
23 Alexander Skwar
24 --
25 >From 0 to "what seems to be the problem officer" in 8.3 seconds.
26 -- Ad for the new VW Corrado
27 --
28 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Dumping COMPLETE slocate (updatedb) database? Alexander Skwar <listen@×××××××××××××××.name>