0

I am depending on running the following script (as an cronjob every week) for all my update of ubuntu focal fossa.

# To make the script exit upon error
set -e

Now carry on with the update and upgrade

apt-get --assume-yes --fix-missing update dpkg --configure -a apt-get --assume-yes --fix-broken install apt-get --assume-yes upgrade apt-get --assume-yes dist-upgrade apt-get --assume-yes full-upgrade apt-get --assume-yes autoremove apt-get --assume-yes clean

I just wonder, since it includes something like dist-upgrade and full-upgrade, does it mean my focal-fossa will be automatically updated to the more recent jellyfish version? If so, does it make Ubuntu a rolling distro, just like manjaro?

Della
  • 505

1 Answers1

0

Your script will not upgrade to a different Ubuntu release. (Unless you modify your /etc/apt/sources.list)

For upgrading to a new release you have:

do-release-upgrade

See the Ubuntu man page for do-release-upgrade

You might want to use apt instead of apt-get. I think apt-get full-upgrade does not even exist.

sudo apt upgrade

Will upgrade your existing packages if it can without removing or adding packages (in case of a change in dependencies)

sudo apt full-upgrade

Will do everything that the normal upgrade command does, and additionally might remove/add packages if required in order to upgrade.

I believe the "sudo apt-get upgrade" is redundant in your script and can be removed. The "sudo apt-get full-upgrade" can be changed to "sudo apt full-upgrade", so the "sudo apt-get dist-upgrade" can be removed as well.

BootsyZ
  • 171