How Do You Install the locate Utility on CentOS/RHEL/Fedora?

Problem scenario
You try to run the locate command, but you receive "-bash: locate: command not found". You try to install it, but you get this message: "No match for argument: locate"

How do you install locate?

Run this command: sudo yum -y install mlocate

Leave a comment

Your email address will not be published. Required fields are marked *