How to install watchman in Linux

Watchman is a server-client tool to watch files and directories for changes. It uses the inotify mechanism of the Linux kernel to achieve this.

This tutorial explains the details to install and configure watchman in Linux.

Step1: Clone the repository.

#git clone

Step2: Change the location to the cloned folder.

#cd watchman/

Step3: Checkout the version.

#git checkout v4.9.0

Step4: Install the dependencies.

#apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool

Step5: Configure and install watchman

#make install

Step6: Raise inotify limit

#echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_watches && \
    echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_queued_events && \
    echo 999999 | sudo tee -a /proc/sys/fs/inotify/max_user_instances && \
    watchman shutdown-server

That's all...

Leave a Reply