Added apt-get upgrade and dist-upgrade option

Via issue #766.