List Installed OS Updates (Windows Server and Linux)

Windows Server 2012 R2: wmic qfe list full /format:table
Windows Server 2016: wmic qfe list full /format:table
Windows Server 2019: wmic qfe list full /format:table
Amazon Linux 2: sudo yum history list all
sudo yum history info X