APT -- Advanced Package Tool -- is all that is needed for most application installations when there are repositories which are regularly updated for packages of interest.
sudo apt update -y sudo apt update -y -t stretch-backports
sudo apt upgrade -y --fix-missing sudo apt upgrade -y -t stretch-backports --fix-missing
Upgrade Distributon (e.g, Debian Stable)
sudo apt dist-upgrade -y --fix-missing
Clean, Autoclean, Check, Autoremove
All these commands can be run from apt. In particular,
autoremove is a good option to keep things tidy.
Purge and Remove
To seriously remove things, do:
sudo apt-get --purge remove package-name