40 apt useful commands

To just update a program to its latest without knowing the version number do, say want to update gfortran

 sudo apt-get upgrade gfortran

To update the distribution do

 sudo apt-get dist-upgrade