Find the answer to your Linux question:
Results 1 to 3 of 3
I used to be able to run locate and updatedb, but after an OpenSUSE update, they no longer work. I've reinstalled findutils and it appears to install correctly, but the ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    1

    locate and updatedb: command not found

    I used to be able to run locate and updatedb, but after an OpenSUSE update, they no longer work. I've reinstalled findutils and it appears to install correctly, but the commands still don't work.

    server:/tmp # rpm -Uvh --force findutils-4.2.28-24.i586.rpm
    Preparing... ########################################### [100%]
    1:findutils ########################################### [100%]
    server:/tmp # locate
    -bash: locate: command not found
    server:/var/lib # updatedb
    -bash: updatedb: command not found

    I believe the binary is supposed to be installed in /usr/bin, but it's not there.

    server:/tmp # ls /usr/bin/lo*
    /usr/bin/locale /usr/bin/log_server_status2 /usr/bin/lookbib
    /usr/bin/localedef /usr/bin/logname
    /usr/bin/lockfile /usr/bin/look

    My path looks good.

    server:/etc/profile.d # $PATH
    -bash: /sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin

    I've tried reinstalling with yast as well. Same symptoms. Any ideas what's wrong here? I'm tempted to reinstall the OS. Thanks!

  2. #2
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    Bah. I just create my own scripts to do the same job.
    /usr/local/bin/locate
    Code:
    #!/bin/sh
    cat /index | grep $@
    /usr/local/sbin/updatedb
    Code:
    #!/bin/sh
    find / | sort > /index

  3. #3
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    That would be a drag. I couldn't live without locate/updatedb. Aside from D-cat's advice, is it not possible to install slocate or mlocate?
    Linux Mint + IceWM Registered:#371367 New Members: click here

Posting Permissions

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