How To Install watchdog.x86_64 on Amazon Linux 2

In this tutorial we learn how to install watchdog.x86_64 in Amazon Linux 2. watchdog.x86_64 is Software and/or Hardware watchdog daemon

Introduction

In this tutorial we learn how to install watchdog.x86_64 on Amazon Linux 2.

What is watchdog.x86_64

The watchdog program can be used as a powerful software watchdog daemon or may be alternately used with a hardware watchdog device such as the IPMI hardware watchdog driver interface to a resident Baseboard Management Controller (BMC). watchdog periodically writes to /dev/watchdog; the interval between writes to /dev/watchdog is configurable through settings in the watchdog sysconfig file. This configuration file is also used to set the watchdog to be used as a hardware watchdog instead of its default software watchdog operation. In either case, if the device is open but not written to within the configured time period, the watchdog timer expiration will trigger a machine reboot. When operating as a software watchdog, the ability to reboot will depend on the state of the machine and interrupts. When operating as a hardware watchdog, the machine will experience a hard reset (or whatever action was configured to be taken upon watchdog timer expiration) initiated by the BMC.

We can use yum to install watchdog.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install watchdog.x86_64.

Install watchdog.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install watchdog.x86_64 using yum by running the following command:

sudo yum -y install watchdog.x86_64

How To Uninstall watchdog.x86_64 on Amazon Linux 2

To uninstall only the watchdog.x86_64 package we can use the following command:

sudo yum remove watchdog.x86_64

watchdog.x86_64 Package Contents on Amazon Linux 2

/etc/sysconfig/watchdog
/etc/watchdog.conf
/etc/watchdog.d
/usr/lib/systemd/system/watchdog-ping.service
/usr/lib/systemd/system/watchdog.service
/usr/libexec/watchdog/scripts
/usr/sbin/watchdog
/usr/sbin/wd_identify
/usr/sbin/wd_keepalive
/usr/share/doc/watchdog-5.13
/usr/share/doc/watchdog-5.13/AUTHORS
/usr/share/doc/watchdog-5.13/COPYING
/usr/share/doc/watchdog-5.13/ChangeLog
/usr/share/doc/watchdog-5.13/IAFA-PACKAGE
/usr/share/doc/watchdog-5.13/NEWS
/usr/share/doc/watchdog-5.13/README
/usr/share/doc/watchdog-5.13/README.RHEL
/usr/share/doc/watchdog-5.13/README.watchdog.ipmi
/usr/share/doc/watchdog-5.13/TODO
/usr/share/doc/watchdog-5.13/examples
/usr/share/doc/watchdog-5.13/examples/README
/usr/share/doc/watchdog-5.13/examples/another-chance.sh
/usr/share/doc/watchdog-5.13/examples/dbcheck.sh
/usr/share/doc/watchdog-5.13/examples/repair.sh
/usr/share/doc/watchdog-5.13/examples/systemcheck.sh
/usr/share/doc/watchdog-5.13/examples/uptime.sh
/usr/share/man/man5/watchdog.conf.5.gz
/usr/share/man/man8/watchdog.8.gz
/usr/share/man/man8/wd_identify.8.gz
/usr/share/man/man8/wd_keepalive.8.gz

References

Summary

In this tutorial we learn how to install watchdog.x86_64 on Amazon Linux 2 using yum.