Install mlocate in FreeBSD

Windows Articles

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...

How to get the Android 11 Notification Panel

It's no secret that even though Android is the most widely used mobile operating system. Not always our device has the latest...

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

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

root@osradar:~ # 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
root@osradar:~ #

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!!

root@osradar:~ # updatedb
updatedb: Command not found.
root@osradar:~ #

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

weekly_locate_enable="YES"

Rebuid the database manually

[root@osradar /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.

[root@osradar ~]# 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 !!

More articles

1 COMMENT

  1. ur article get many twists and turns, and the inpatient me repeat every mistake u made and finally found that the true answer is at bottom of the article. xD

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...

How to get the Android 11 Notification Panel

It's no secret that even though Android is the most widely used mobile operating system. Not always our device has the latest...

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...
x