This guide says to use both commands before installing stuff. Is it true that I should use both commands? Both commands install packages right?
41 Answer
The common difference between upgrade and full-upgrade is that a full-upgrade will remove the installed packages if that is needed to upgrade the whole system.
I will do a full-upgrade if I am intending to do a big upgrade to my Linux systems.
The difference between
upgradeandfull-upgradeis that the later will remove the installed packages if that is needed to upgrade the whole system. Be extra careful when using this command
You need to use care lest you remove (with full-upgrade) packages you did not intend to be removed.
I will more frequently use autoremove (through sudo apt autoremove) to remove old packages and then just use upgrade.
It is not necessarily hard and fast.
The article I posted above is good to read through entirely.
If I need to do an aggressive cleanup or a bit of a repair before further upgrades, I will run:
sudo apt-get update && sudo apt-get autoclean && sudo apt-get clean && sudo apt-get autoremoveI hope that helps.
3