GN Latest News

How to Manually Update your Server.

How to Block a Suspicious IP Address.
How to Create a User Interface for Spamassassin
Backup and Restore Procedure.
How to Manually Update your Server.
How to Update your EHCP force Version.
Post Reply
Rob Swan
Site Admin
Posts: 75
Joined: Tue Oct 31, 2017 3:03 pm
Location: UK
Contact:

How to Manually Update your Server.

Post by Rob Swan »

IMPORTANT :
Before you follow the manual update procedure, you must read through the information in THIS POST.
Remember, you may not need to do this, as per the information in the above mentioned post

Ok let’s get this thing updated safely.

The first thing we are going to do is update the local apt package manger database, think of it like checking for the latest updates, but not actually installing them.

Connect to your server using your PC and PuTTY, then issue this command.

sudo apt-get update

Image

Image

Ok next, let install the first round of updates, so issue this command.

sudo apt-get upgrade -y

Image

The update process should now start (if there are any updates).

If you get asked during the upgrade about a configuration file that has changed, 9 times out of 10 you should choose the option to keep your currently installed one.

Image

There is the rare occasion where keeping the current file will cause an error, if you think this is the case then usually asking google will reveal the answer.

Next, we are going to run another command which should install any updates relating to your distribution.

sudo apt-get dist-upgrade -y

Image

Image

You may have noticed that the system has told you something regarding held back updates (if there are any).
It’s almost always safe to install held back updates, as any updates that are kept back that are not safe will still be kept back.

In the older version of this post, I told you how to install any held back updates, in a safe way.
In this version I am going to give you an even safer method.

Even if you did not turn on the Ubuntu auto update replacement script, we are going to run it once to take care of any held back updates, this will also do a cleanup on your server, so running it even just for that is a good idea.

Please keep in mind that this will trigger a system reboot when it has finished, so if a reboot is not appropriate right now, wait until it is.

To run the script, issue this command.

sudo bash /var/www/new/ehcp/scripts/auto-update.sh

Image

Image

Watch, the PuTTY window whilst the script is running in case any user input is required.

Like I said at the end of the script, the system will re-boot, as this this is meant to be internal automated script, it will reboot your server without any prompts or warnings.

Image

Image

If you did still see held back updates whilst the script was running, then these updates are NOT SAFE to install at this time.

Once your server has fully rebooted, we are done here.


Last bumped by Rob Swan on Sat Jan 20, 2018 3:57 pm.
Post Reply