Anytime you install/remove something from the system, it's necessary to keep the database of installed files current if you want the locate command to work. The command is updatedb, which usually requires root privilege to run. So, su to root, run the command updatedb, then try locate whatever again. Be prepared to wait a minute or two for updatedb to finish, depending on how large your set of installed files is.
|