Skip to content

Instantly share code, notes, and snippets.

@pvdb
pvdb / 70-available-updates-incl-age.rb
Last active September 15, 2021 00:22
determine and print out the age of the oldest and the age of the most recent security update
#!/usr/bin/env ruby
#
# This script can be used to patch the following script on an Amazon Linux AMI:
#
# /etc/update-motd.d/70-available-updates
#
# which is run by cron on a daily basis to add package update info to the MOTD:
#
# 19 package(s) needed for security, out of 160 available