ubuntu check for new version code example
Example 1: update software in ubuntu
# Upgrades all applications
sudo apt-get upgrade
Example 2: ubuntu update
sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'