Upgrading GitLab server from 8.11.7 to latest version - Cent OS 6

When I tried to upgrade the GitLab server to the latest version using ‘yum install -y gitlab-ce’ , I am getting the following error.

Error in PREIN scriptlet in rpm package gitlab-ce-10.2.2-ce.0.el6.x86_64
gitlab preinstall:
gitlab preinstall: Your version of PostgreSQL is no longer supported. Please upgrade your PostgreSQL version.
gitlab preinstall: Check https://docs.gitlab.com/omnibus/update/#updating-gitlab-10-0-or-newer for details.
gitlab preinstall:
gitlab preinstall: Upgrade failed. Retry the upgrade after upgrading your PostgreSQL version.

When i did some research online, the advise was to initially upgrade to Gitlab 9.x and then upgrade to gitlab 10.x.

Can someone tell me the command to upgrade gitlab to a particular version in Cent Os 6.2 ?

Thanks in advance
Mafaz

First use

sudo gitlab-ctl pg-upgrade
then upgrade as normal. More information in the documentation https://docs.gitlab.com/omnibus/update/README.html#updating-from-gitlab-8-10-and-lower-to-8-11-or-newer