Command use to update raspberry pi OS from old version to the new version. 

sudo apt-get update && sudo apt-get dist-upgrade -y