12

This guide says to use both commands before installing stuff. Is it true that I should use both commands? Both commands install packages right?

4
  • 1
    This will answer your question: askubuntu.com/questions/770135/…
    – anon
    Commented Jun 2, 2021 at 1:16
  • That post doesn't answer my question. If the packages are installed with dependencies using apt full-upgrade, does that mean I don't have to use apt upgrade as well?
    – Neo
    Commented Jun 2, 2021 at 1:19
  • I already know that I can use apt or apt-get for certain commands.
    – Neo
    Commented Jun 2, 2021 at 1:23
  • I posted an answer with methods I use and more information on the difference between upgrade and full-upgrade.
    – anon
    Commented Jun 2, 2021 at 1:37

1 Answer 1

9

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.

Linux apt-get commands (Archive)

The difference between upgrade and full-upgrade is 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 autoremove

I hope that helps.

3
  • Yes however should I use both apt upgrade or apt full-upgrade or just either one or the other?
    – Neo
    Commented Jun 2, 2021 at 1:46
  • 3
    If your system is working very well, regular upgrade should work just fine. I do not see any issue with just using regular upgrade. I actually do not see a need to use both. If you wish to clean up old installs, just use full-upgrade.
    – anon
    Commented Jun 2, 2021 at 1:49
  • Ok thanks very much!
    – Neo
    Commented Jun 2, 2021 at 1:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .