2

About to accomplish an update for the current packages installed - since Ubuntu 18:04 to 20:04 for Desktop and Server environments - I have been always using:

sudo apt update
sudo apt upgrade

Note just in case - I never used the apt-get command, it according with:

So far practically, I had none problem and all work as expected.

About do an upgrade, I saw practically in all the tutorials being used the same pair mentioned above, and of course it has sense, but in few places I saw the sudo apt full-upgrade command being used.

Questions

  • When use sudo apt full-upgrade?
  • When is mandatory?
Manuel Jordan
  • 1,768
  • 7
  • 30
  • 50

1 Answers1

3

upgrade is a more cautions way of upgrading than full-upgrade.

upgrade will never remove one of your currently installed programs. full-upgrade may.

If some new package would require newer dependencies that are not compatible with one of your currently installed programs, that upgrade will not be performed with the upgrade option. With full-upgrade, however, any upgrade will be performed. If that upgrade causes incompatibility with a currently installed package, that package is removed.

I am not sure how likely such scenario is when you use the standard Ubuntu software sources. The Ubuntu packages certainly try to avoid a program suddenly breaking during the life time of your current distribution. Such scenario may be more likely when using third party PPA's.

vanadium
  • 88,010
  • 1
    @mchid sure about that? My experience is that an update also will do kernel updates. – vanadium Apr 11 '22 at 15:57
  • Yeah, you're right. I just checked it out and had a kernel update available. Ran apt upgrade and compared it to apt full-upgrade and the result was the same. – mchid Apr 11 '22 at 16:10
  • 2
    As far as I know (never done this so far) a full-upgrade is needed before running `do-release-upgrade, maybe worth to mention. – mook765 Apr 11 '22 at 16:12
  • @mook765 yes, you're right, in few tutorials do mention about to use full-upgrade before to use do-release-upgrade - in others not, just 2 days ago I did do an upgrade process for Ubuntu Server 18:04 to 20:04 without full-upgrade and all worked fine. – Manuel Jordan Apr 11 '22 at 16:25