Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: ordep on February 22, 2016, 09:49:26 PM

Title: Slocate
Post by: ordep on February 22, 2016, 09:49:26 PM
Where can I find slocate?

Thanks in advance.
Title: Re: Slocate
Post by: Rich on February 22, 2016, 10:04:03 PM
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.
Title: Re: Slocate
Post by: ordep on February 23, 2016, 10:56:35 PM
TC-plus-6.4.1

Code: [Select]
$ 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?
Title: Re: Slocate
Post by: ordep on February 23, 2016, 11:36:02 PM
TC-plus-6.4.1

Code: [Select]
$ 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.
Code: [Select]
slocate -u
Will check later and report.
Title: Re: Slocate
Post by: Rich on February 23, 2016, 11:48:31 PM
Hi ordep
I just saw I should use the -u flag first to generate the db.
Code: [Select]
slocate -u
Will check later and report.
Actually the info file says:
Quote
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:
Code: [Select]
sudo slocate -uor:
Code: [Select]
sudo su
slocate -u
exit
Title: Re: Slocate
Post by: ordep on February 24, 2016, 02:28:46 AM
Works like a charm!
Title: Re: Slocate
Post by: Rich on February 24, 2016, 02:39:39 AM
Hi ordep
Thanks for reporting. Which version of TC are you running? Show the output of:
Quote
version
Title: Re: Slocate
Post by: ordep on February 24, 2016, 02:49:49 AM
Hi ordep
Thanks for reporting. Which version of TC are you running? Show the output of:
Quote
version

~$ version
6.4.1
Title: Re: Slocate
Post by: Rich on February 24, 2016, 03:09:15 AM
Hi ordep
Thanks. One of the administrators will probably copy it to the other repo once they see this.
Title: Re: Slocate
Post by: Juanito on February 24, 2016, 03:18:45 AM
slocate copied to tc-6.x and 7.x repos