WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Slocate  (Read 3687 times)

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Slocate
« on: February 22, 2016, 09:49:26 PM »
Where can I find slocate?

Thanks in advance.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Slocate
« Reply #1 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.

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Slocate
« Reply #2 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?

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Slocate
« Reply #3 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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Slocate
« Reply #4 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

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Slocate
« Reply #5 on: February 24, 2016, 02:28:46 AM »
Works like a charm!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Slocate
« Reply #6 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

Offline ordep

  • Jr. Member
  • **
  • Posts: 74
Re: Slocate
« Reply #7 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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Slocate
« Reply #8 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Slocate
« Reply #9 on: February 24, 2016, 03:18:45 AM »
slocate copied to tc-6.x and 7.x repos