w3resource logo


web-server

Upgrade Ubuntu Linux server with do-release-upgrade

Secondary Nav

do-release-upgrade

do-release-upgrade utility is used to upgrade to the latest version of Ubuntu server.

To collect latest package information, execute update apt-get

sudo apt-get update

You have to install the upgrade utility then.

sudo apt-get install update-manager-core

And then, finally you run do-release-upgrade

do-release-upgrade

Updating installed packages

Use the apt-get tool

sudo apt-get upgrade
apt-get upgrade

To automate package updates, use unattendedupgrades:

Install the package first:

sudo apt-get install unattended-upgrades

unattended4

You need to configure it then:

sudo vi /etc/apt/apt.conf.d/50unattended-upgrades

Unattended upgrade actions are logged in /var/log/unattended-upgrades. Add a Cron job to run /usr/bin/unattended-upgrade periodically.



Join our Question Answer community to learn and share your programming knowledge.

Help the community:

PHP: Loop

JavaScript: Delete duplicates in an array

Oracle: Round the number