$ sudo apt-get install libpcre3 libpcre3-dev
Now acquire the YARA source code.
$ wget http://yara-project.googlecode.com/files/yara-1.4.tar.gz
$ wget http://yara-project.googlecode.com/files/yara-python-1.4.tar.gz
Untar and configure YARA.
$ tar xvfz yara-1.4.tar.gz
$ cd yara-1.4.tar.gz
$ ./configure
If there are no errors, make the executables.
$ make
$ make check
$ sudo make install
Now add python support.
$ cd ..
$ tar xvfz yara-python-1.4.tar.gz
$ cd yara-python-1.4.tar.gz
$ python setup.py build
$ sudo python setup.py install
You should now be able to call YARA from a shell prompt.
$ yara
usage: yara [OPTION]... [RULEFILE]... FILE
options:
-t
-i
-n print only not satisfied rules (negate).
-g print tags.
-m print metadata.
-s print matching strings.
-d
-r recursively search directories.
-f fast matching mode.
-v show version information.
Report bugs to: