"locate" command is supported?

Hi, I read the following: "The locate](http://www.linfo.org/locate.html) command can be used to confirm that glibc is already installed on the system as follows: locate glibc " on link: Beginning C programming tutorial by The Linux Information Project. It failed when I type that on SUSE. What is the reason? Thanks.

It is not installed by default anymore.

But you can easily install it by typing:

sudo zypper in findutils-locate

And btw. the glibc development files are in the package “glibc-devel” on openSUSE, which you could install by typing:

sudo zypper in glibc-devel


On 2013-04-24 14:36, freerjw wrote:
> It failed when I type that on
> SUSE. What is the reason? Thanks.

Install it first :slight_smile:

Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Please for next time realize that that is not an adequate description. When you type that in a console, you see something. Then you should post that here between CODE tags (the # button in the post editor), then we can see what you saw and that is much better then any description. Like:

henk@boven:~> locate
If 'locate' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf locate

> What is the reason?

and: after you install it you need to let it build its database…just
type into a terminal


it might take several minutes to build the db, but you only have to
do it once manually…afterwards cron will run it daily, in the


Is “locate” part of Linux kernel? Thanks

No, it’s a user-space command supplied by the GNU Find Utilities (findutils-locate) package.