How To Install rats on Fedora 34

rats is Rough Auditing Tool for Security

Introduction

In this tutorial we learn how to install rats on Fedora 34.

What is rats

RATS(Rough Auditing Tool for Security) scans through code, finding potentially dangerous function calls. The goal of this tool is not to definitively find bugs (yet). The current goal is to provide a reasonable starting point for performing manual security audits. The initial vulnerability database is taken directly from things that could be easily found when starting with the forthcoming book, “Building Secure Software” by Viega and McGraw.

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

Install rats on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install rats

Install rats on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install rats

How To Uninstall rats on Fedora 34

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

sudo dnf remove rats

rats Package Contents on Fedora 34

/usr/bin/rats
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/eee39d17a782307d672e83ab848e7f9f697051
/usr/share/doc/rats
/usr/share/doc/rats/COPYING
/usr/share/doc/rats/README
/usr/share/man/man1/rats.1.gz
/usr/share/rats
/usr/share/rats/rats-c.xml
/usr/share/rats/rats-openssl.xml
/usr/share/rats/rats-perl.xml
/usr/share/rats/rats-php.xml
/usr/share/rats/rats-python.xml
/usr/share/rats/rats-ruby.xml

References

Summary

In this tutorial we learn how to install rats on Fedora 34 using yum and dnf.