0

I have inherited 15 servers running Ubuntu 16.04 and need to install security updates on them all.

I have been told by my manager to install them one at a time and then test the system to make sure nothing has broken before installing the next one. I know this is a slow process but we have had problems with updates in the past so this is a belt and braces approach.

I know that I can do the whole lot in one go with the commands sudo apt-get update and then sudo apt-get upgrade.

Is there a way that i can install only one upgrade at at time?

1 Answers1

1

You should always install an upgrade with its dependencies.

First run

apt-get update

Then ask a list of available upgrades

apt-get -u upgrade --assume-no

Choose a package to upgrade, and run

apt-get install XXXX

The package and its dependencies will be installed. Run your tests, when done, ask for a new list and continue until finished.

Gerard H. Pille
  • 2,469
  • 1
  • 12
  • 10