Amazon Linux AMI update installed packages for security

Originally published at: https://www.cyberciti.biz/faq/amazon-linux-ami-update-installed-packages-for-security/

I would like to update installed packages for security on Amazon Linux AMI server running in the cloud. How can I update my Amazon Linux AMI system using ?