The tripwire package can be installed with the following command:
$ sudo dnf install tripwire
The tripwire package provides the Tripwire file and directory integrity checker, a common alternative to AIDE. It must be installed for any integrity checking to be possible.
Run the following command to generate the initial known-good database, supplying the local passphrase when prompted:
$ sudo tripwire --initBy default the database is written to /var/lib/tripwire/$(HOSTNAME).twd, as configured by the DBFILE directive in /etc/tripwire/twcfg.txt. To run a manual integrity check afterwards:
$ sudo tripwire --checkIf the check produces unexpected output, investigate.
For Tripwire to be effective, an initial database of "known-good" information about files must be captured so that installed files can be verified against it.
Tripwire should run at least weekly. The Debian tripwire package installs /etc/cron.daily/tripwire by default, which runs tripwire --check once a day and mails the report to root. The script can instead be moved to /etc/cron.weekly if weekly checks are preferred.
By default, integrity checking tools do not run themselves periodically. Running Tripwire on a schedule is necessary to reveal unexpected changes to installed files in a timely manner.