Installation

The most straightforward way of installing YARA-X in your system is downloading one of the pre-built binaries that we distribute with every release. You will find pre-built binaries for Linux, macOS, and Windows, unzip the binary in your preferred location, and that’s all, you are ready to run YARA-X.

In macOS, you can also use brew:

brew install yara-x

If you prefer to build YARA-X yourself, follow the guide below.

Installing with cargo

For building YARA-X you will need a recent version of Rust. Follow the instructions in the Rust official site.

Once you have Rust installed in your system, type:

git clone https://github.com/VirusTotal/yara-x 
cd yara-x
cargo install --path cli