How To Install tripwire on CentOS 7

In this tutorial we learn how to install tripwire on CentOS 7. tripwire is IDS (Intrusion Detection System)

Introduction

In this tutorial we learn how to install tripwire on CentOS 7.

What is tripwire

Tripwire is a very valuable security tool for Linux systems, if it is installed to a clean system. Tripwire should be installed right after the OS installation, and before you have connected your system to a network (i.e., before any possibility exists that someone could alter files on your system). When Tripwire is initially set up, it creates a database that records certain file information. Then when it is run, it compares a designated set of files and directories to the information stored in the database. Added or deleted files are flagged and reported, as are any files that have changed from their previously recorded state in the database. When Tripwire is run against system files on a regular basis, any file changes will be spotted when Tripwire is run. Tripwire will report the changes, which will give system administrators a clue that they need to enact damage control measures immediately if certain files have been altered.

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

Install tripwire on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install tripwire

Install tripwire on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install tripwire

How To Uninstall tripwire on CentOS 7

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

sudo dnf remove tripwire

References

Summary

In this tutorial we learn how to install tripwire on CentOS 7 using yum and dnf.