How To Install yara on Fedora 36

In this tutorial we learn how to install yara in Fedora 36. yara is Pattern matching Swiss knife for malware researchers

Introduction

In this tutorial we learn how to install yara on Fedora 36.

What is yara

YARA is a tool aimed at (but not limited to) helping malware researchers to identify and classify malware samples. With YARA you can create descriptions of malware families (or whatever you want to describe) based on textual or binary patterns. Each description, a.k.a rule, consists of a set of strings and a Boolean expression which determine its logic.

We can use yum or dnf to install yara on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install yara.

Install yara on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install yara using dnf by running the following command:

sudo dnf -y install yara

Install yara on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install yara using yum by running the following command:

sudo yum -y install yara

How To Uninstall yara on Fedora 36

To uninstall only the yara package we can use the following command:

sudo dnf remove yara

yara Package Contents on Fedora 36

/usr/bin/yara
/usr/bin/yarac
/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/2f438a205fb6cc89226ed21a9f3108a448e380
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/76787b44aef943a8857eb86002b1dfeae6a5d2
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/7b5a4ad2451ec164c99cec3b6de78585572268
/usr/lib/libyara.so.8
/usr/lib/libyara.so.8.0.0
/usr/share/doc/yara
/usr/share/doc/yara/AUTHORS
/usr/share/doc/yara/CONTRIBUTORS
/usr/share/doc/yara/README.md
/usr/share/licenses/yara
/usr/share/licenses/yara/COPYING
/usr/share/man/man1/yara.1.gz
/usr/share/man/man1/yarac.1.gz
---
title: "How To Install yara on Fedora 36"
linkTitle: "yara"
type: "docs"
description: "In this tutorial we learn how to install yara in Fedora 36. yara is Pattern matching Swiss knife for malware researchers"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/yara-featured.png
---

Introduction

References

In this tutorial we learn how to install yara on Fedora 36.

What is yara

Summary

YARA is a tool aimed at (but not limited to) helping malware researchers to identify and classify malware samples. With YARA you can create descriptions of malware families (or whatever you want to describe) based on textual or binary patterns. Each description, a.k.a rule, consists of a set of strings and a Boolean expression which determine its logic.

We can use yum or dnf to install yara on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install yara. In this tutorial we learn how to install yara on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).

Install yara on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install yara using dnf by running the following command:

sudo dnf -y install yara

Install yara on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install yara using yum by running the following command:

sudo yum -y install yara

How To Uninstall yara on Fedora 36

To uninstall only the yara package we can use the following command:

sudo dnf remove yara

yara Package Contents on Fedora 36

/usr/bin/yara
/usr/bin/yarac
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/11045df0c31b0fc931640a754342d5cf0c14b3
/usr/lib/.build-id/72
/usr/lib/.build-id/72/8ac711c153c08d531fc0e458e0518196ee89fd
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/85301a45d7ba78172a55e726aa5ceace6cef2d
/usr/lib64/libyara.so.8
/usr/lib64/libyara.so.8.0.0
/usr/share/doc/yara
/usr/share/doc/yara/AUTHORS
/usr/share/doc/yara/CONTRIBUTORS
/usr/share/doc/yara/README.md
/usr/share/licenses/yara
/usr/share/licenses/yara/COPYING
/usr/share/man/man1/yara.1.gz
/usr/share/man/man1/yarac.1.gz

References

Summary

In this tutorial we learn how to install yara on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).