if you came from Linux word then is mlocate is very familiar for you , is one of the best ways to find files and Folders, in Linux the the package called mlocate and is you can install via Linux package management
In FreeBSD, the Package management cannot find mlocate command
[email protected]:~ # pkg install mlocate Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. pkg: No packages available to install matching 'mlocate' have been found in the repositories [email protected]:~ #
not be disappointed
the mlocate command in installed by default in FreeBSD, but u have to rebuild the database first, maybe you are thinking updatedb should work . NOO!!
[email protected]:~ # updatedb updatedb: Command not found. [email protected]:~ #
mm! What is the command to rebuid mlocate the database in FreeBSD
I found that PC-BSD’s base configuration /etc/defaults/periodic.conf check if the weekly mlocate activated
Rebuid the database manually
[[email protected] /osradarweb]# /etc/periodic/weekly/310.locate Rebuilding locate database:
it will take some minutes to make the DB ready, after that the mlocate command should work correctly.
[[email protected] ~]# locate nagios4 /usr/ports/net-mgmt/cnagios4 /usr/ports/net-mgmt/cnagios4/Makefile /usr/ports/net-mgmt/cnagios4/distinfo /usr/ports/net-mgmt/cnagios4/files /usr/ports/net-mgmt/cnagios4/files/patch-Makefile.in /usr/ports/net-mgmt/cnagios4/pkg-descr /usr/ports/net-mgmt/cnagios4/pkg-plist /usr/ports/net-mgmt/nagios4 /usr/ports/net-mgmt/nagios4/Makefile /usr/ports/net-mgmt/nagios4/distinfo /usr/ports/net-mgmt/nagios4/files /usr/ports/net-mgmt/nagios4/files/nagios.in /usr/ports/net-mgmt/nagios4/files/patch-configure
Please Enjoy !!