Install mlocate (locate and updatedb Commands) on CentOS 7
yum -y update #As a matter of best practice we’ll update our packages
yum -y install mlocate #Then let’s install mlocate and any required packages
updatedb #command will update the search databases