apt-get update and apt-get upgrade

-y flag is required for apt-get update otherwise, it does not actually update packages.
apt-get upgrade -y is needed to update existing packages for security updates.