# Installing Yara (Ubuntu/Debian & Windows)

3.1. Note: Again, I have attached a Linux VM to **Task4 - Deploy** with Yara & miscellaneous tools that you will use throughout this room. You may follow along using that, or alternatively, install Yara on your own operating system if you'd like.\
\
3.2. Installing Yara: Kali LinuxTo install Yara on Linux you have two options:\
3.2.1. Option #1: Installing Through Package Manager (Recommended):\
**3.2.1.1.** Updating package manager `sudo apt update -y && sudo apt upgrade -y`3.2.1.1.**2.** Installing Yara `sudo apt install yara`\
3.2.2. Option #2: Installing From Source (If you are unable to try Option #1):3.2.2.1. `sudo apt update -y && sudo apt upgrade -y`**3.2.2.2.** Install dependencies:`sudo apt install automake libtool make gcc flex bison libssl-dev libjansson-dev libmagic-dev pkg-config`\
3.2.3. Downloading the latest releaseVisit the [Yara Github repo](https://github.com/virustotal/yara/releases) to obtain the latest version for your OS. At the time of writing, it is **v4.0.2**.3.2.3.1.  `wget https://github.com/VirusTotal/yara/archive/v4.0.2.tar.gz`\
![](https://i.imgur.com/4djcxsH.png)\
\
3.2.4. Extract **v4.0.2.tar.gz3.2.4.1**. `tar -zxvf v4.0.2.tar.gz`\
3.2.5. Compile & Install**3.2.5.1**. `cd yara-4.0.2`**3.2.5.2**. `chmod +x configure`**3.2.5.3**. `./configure`**3.2.5.4** `chmod +x bootstrap.sh`**3.2.5.5**. `./bootstrap.sh`**3.2.5.6**. `make`**3.2.5.7**. `sudo make install`**3.2.5.8**. `cd yara-4.0.2`**3.2.5.9**. `chmod +x configure`**3.2.5.10**. `./configure`**3.2.5.11**. `chmod +x bootstrap.sh`**3.2.5.12**. `./bootstrap.sh`**3.2.5.13**. `make`**3.2.5.14**. `sudo make install`\
\
3.2.5. Installing Yara: Windows**3.2.5.1.** Download latest binaries (zip files) from their GitHub page![](https://i.imgur.com/4djcxsH.png)\
**3.2.6.** Run the executable/binary
