Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: ordep on February 22, 2016, 09:49:26 PM
-
Where can I find slocate?
Thanks in advance.
-
Hi ordep
TC4 has slocate. It has no dependencies. You can try downloading it from:
http://tinycorelinux.net/4.x/x86/tcz/slocate.tcz
Let us know whether it works or not and what version of TC you are running.
-
TC-plus-6.4.1
$ slocate mc
slocate: fatal error: Could not find user database '/usr/local/var/lib/slocate/slocate.db': No such file or directory
tc@box:~$ sudo updatedb
sudo: updatedb: command not found
Any other way to generate slocate.db?
-
TC-plus-6.4.1
$ slocate mc
slocate: fatal error: Could not find user database '/usr/local/var/lib/slocate/slocate.db': No such file or directory
tc@box:~$ sudo updatedb
sudo: updatedb: command not found
Any other way to generate slocate.db?
I just saw I should use the -u flag first to generate the db.
slocate -u
Will check later and report.
-
Hi ordep
I just saw I should use the -u flag first to generate the db.
slocate -u
Will check later and report.
Actually the info file says:
Comments: Run "slocate -u" as root to create or update the database. That
can take several minutes and must be done before using slocate.
So either:
sudo slocate -u
or:
sudo su
slocate -u
exit
-
Works like a charm!
-
Hi ordep
Thanks for reporting. Which version of TC are you running? Show the output of:
version
-
Hi ordep
Thanks for reporting. Which version of TC are you running? Show the output of:
version
~$ version
6.4.1
-
Hi ordep
Thanks. One of the administrators will probably copy it to the other repo once they see this.
-
slocate copied to tc-6.x and 7.x repos