Date: Tue, 27 Nov 2001 20:08:47 -0800 (PST) From: Annelise Anderson <andrsn@andrsn.stanford.edu> To: chip <chip@wiegand.org> Cc: questions@FreeBSD.ORG Subject: Re: Q about locate Message-ID: <Pine.BSF.4.10.10111272002510.30936-100000@andrsn.stanford.edu> In-Reply-To: <200111271942821.SM03544@there>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 Nov 2001, chip wrote: > When I tried: > locate termcap > I received this response: > locate: database too small: /var/db/locate.database > Is there something I need to do to fix this problem? The man page doesn't > cover this. > > -- > Chip > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > The locate database is build once a week in the middle of the night from a cron instruction in /etc/crontab. If your computer won't be on then or you want it built sooner (or rebuilt to reflect new stuff), run as root /usr/libexec/locate.updatedb, or in the /etc directory type periodic weekly That runs what cron would run--the weekly maintenance routines. Also, typing apropos locate would have listed the locate.updatedb manual page...reading the locate manual page would show you the following (just in case you don't want to have to ask): /usr/libexec/locate.updatedb Script to update the locate database Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: mall.daemonnews.org and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10111272002510.30936-100000>