If you want to do it all on one line, "apt-get update && apt-get upgrade" is the answer.
The && means "run the second command only if the first command completes without an error" .
aptitude update && aptitude safe-upgrade
aptitude
If you want to do it all on one line, "apt-get update && apt-get upgrade" is the answer.
The && means "run the second command only if the first command completes without an error" .