You are not logged in.
Pages: 1
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
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
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
Two things. First the which command and secondly you could just have installed the findutils package which comes with locate... 
Offline
,,Two things"?
The main thing! ;-)
Offline
Pages: 1
[ Generated in 0.019 seconds, 8 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]