sudo apt-get update && sudo apt-get upgrade
sudo apt-get update -y && sudo apt-get upgrade -y easy ;)
The sudo apt-get update command is used to download package information from all configured sources.