Results 1 to 7 of 7

Thread: "locate" command is supported?

  1. #1

    Default "locate" command is supported?

    Hi, I read the following: "The locate 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.

  2. #2

    Default Re: "locate" command is supported?

    Quote Originally Posted by freerjw View Post
    Hi, I read the following: "The locate 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:
    Code:
    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:
    Code:
    sudo zypper in glibc-devel

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: "locate" command is supported?

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


    Install it first :-)

    --
    Cheers / Saludos,

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

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,003

    Default Re: "locate" command is supported?

    Quote Originally Posted by freerjw View Post
    It failed when I type that on SUSE. What is the reason? Thanks.
    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:
    Code:
    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
    henk@boven:~>
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: "locate" command is supported?

    > What is the reason?

    and: after you install it you need to let it build its database..just
    type into a terminal
    Code:
    updatedb
    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
    backgound..

    --
    dd
    http://tinyurl.com/DD-Caveat

  6. #6

    Default Re: "locate" command is supported?

    Is "locate" part of Linux kernel? Thanks

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,289
    Blog Entries
    1

    Default Re: "locate" command is supported?

    Quote Originally Posted by freerjw View Post
    Is "locate" part of Linux kernel? Thanks
    No, it's a user-space command supplied by the GNU Find Utilities (findutils-locate) package.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •