SliTaz SliTaz Forum

You are not logged in.

#1 2012-01-29 13:55:07

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

how to operate slocate/updatedb

Hi,

I installed the package slocate-3.1-3mdv2007.0.tazpkg. To operate it one first has to establish a database. This is done with ,,updatedb" as root. I first added the group ,,slocate" with ,,addgroup" as root.

Then:

root@slitaz:/home/tux/Desktop/slitaz.software# updatedb

/usr/bin/slocate: option requires an argument -- 'l'

It has to do with the security settings. How can I solve this problem?

This is all that I get:

root@slitaz:/home/tux/Desktop/slitaz.software# updatedb --1

slocate: fatal error: Security level must be 0 or 1.

Offline

#2 2012-01-29 17:51:06

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: how to operate slocate/updatedb

Read the manuals:

http://rpm.pbone.net/index.php3/stat/4/idpl/4339549/dir/mandriva_%202007/com/slocate-3.1-3mdv2007.0.i586.rpm.html

Click on the manual links under Content of RPM :

http://rpm.pbone.net/index.php3/stat/45/idpl/4339549/numer/1/nazwa/updatedb

-l <num>

Security level.-l 0turns security checks off, which will make searches faster. -l 1turns security checks on. This is the default.

Try this:

updatedb -l 0

http://rpm.pbone.net/index.php3/stat/45/idpl/4339549/numer/1/nazwa/slocate

-l <level>

Security level.0 turns security checks off. This will makesearchs faster.1 turns security checks on. This is the default.

Try this:

slocate -l 0

If you want autoupdate cron job of updatedb and security someone else will have to help you.

I prefer find command.

Offline

#3 2012-01-29 20:16:33

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: how to operate slocate/updatedb

Thanks, Mojo, works nice this way.

,,I prefer find command." - It is a matter of habits as I guess. I find ,,locate" fascinating because of its speed and I use it regularly to move hardcore windozers to feel ashamed. ;-)

Offline

#4 2012-01-29 22:27:53

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: how to operate slocate/updatedb

Two things. First the which command and secondly you could just have installed the findutils package which comes with locate... tongue

Offline

#5 2012-01-30 04:55:34

michaelbischof
Member
Registered: 2012-01-20
Posts: 536

Re: how to operate slocate/updatedb

,,Two things"?

The main thing! ;-)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 8 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]