Install mlocate in FreeBSD

Windows Articles

How to install Django on Ubuntu 20.04?

Developing web applications is usually related to PHP frameworks. However, Python, which is a very versatile programming language, also has a framework...

How to install the Development and build tools on Ubuntu 20.04?

In this very short post, you will learn how to install a series of development and build tools on Ubuntu 20.04. These...

How to set a drive as read-only in Windows 10

Hello! Hard drives are a fundamental element in any operating system. Of course, Windows 10 is no exception. In fact, this is...

How to create a new KVM virtual Machine on Debian 10?

In the previous post, we explained how to install KVM on Debian 10. Now it's time to create a KVM Virtual Machine.

How to repair a USB drive in Windows 10.

Hi! USB sticks are undoubtedly very functional elements for working in Windows 10. Indeed, their use ranges from file management to creating...
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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install Django on Ubuntu 20.04?

Developing web applications is usually related to PHP frameworks. However, Python, which is a very versatile programming language, also has a framework...

How to install the Development and build tools on Ubuntu 20.04?

In this very short post, you will learn how to install a series of development and build tools on Ubuntu 20.04. These...

How to set a drive as read-only in Windows 10

Hello! Hard drives are a fundamental element in any operating system. Of course, Windows 10 is no exception. In fact, this is...

How to create a new KVM virtual Machine on Debian 10?

In the previous post, we explained how to install KVM on Debian 10. Now it's time to create a KVM Virtual Machine.

How to repair a USB drive in Windows 10.

Hi! USB sticks are undoubtedly very functional elements for working in Windows 10. Indeed, their use ranges from file management to creating...