I am attempting to update a single directory I created. I'm using updatedb
so it will be found by the locate
command.
Command used:
updatedb --localpaths='/frodo/lib/modules/3.12.3-031203-generic/kernel'
Output:
updatedb: unrecognized option '--localpaths=/frodo/lib/modules/3.12.3-031203-generic/kernel'
Same result with:
updatedb --localpaths=
updatedb: unrecognized option '--localpaths='
From man updatedb
:
--localpaths='path1 path2...' Non-network directories to put in the database. Default is /.
Why does it give this error when --localpaths
is clearly stated as an option?
Sytem info:
updatedb --version updatedb (mlocate) 0.26 Copyright (C) 2007 Red Hat, Inc. All rights reserved. This software is distributed under the GPL v.2. This program is provided with NO WARRANTY, to the extent permitted by law. lsb_release -a LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64: core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2- noarch:core-4.0-amd64:core-4.0-noarch Distributor ID: Ubuntu Description: Ubuntu 13.10 Release: 13.10 Codename: saucy uname -r 3.12.3-031203-generic
Edit: I have had success with updatedb -U /frodo/lib/modules/3.12.3-031203-generic/kernel
, but I would still like to know why the --localpaths
from the manual is not recognized.
This alternative option is not in the manual, but found with updatedb -h
.
-U, --database-root PATH the subtree to store in database (default "/")
updatedb --version
)updatedb
, yet the selected answer seems to have worked: unix.stackexchange.com/questions/151700/…