Unable to Update

We currently have GitLab CE 12.2.4 and on the help page it says to update ASAP. So now I’ve been trying to update our GitLab instance and nothing seems to happen.

These are the commands I tried running to do the update.

sudo yum update

and

sudo yum install -y gitlab-ce

Anyone knows to how do the update?

Update

This is what I get after attempting to update our instance:

[root@oskar ~]# yum install -y gitlab-ce
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
rhel-7-server-extras-rpms                                                                   | 2.0 kB  00:00:00
rhel-7-server-optional-rpms                                                                 | 1.8 kB  00:00:00
rhel-7-server-rh-common-rpms                                                                | 2.1 kB  00:00:00
rhel-7-server-rpms                                                                          | 2.0 kB  00:00:00
rhel-7-server-satellite-tools-6.5-rpms                                                      | 2.1 kB  00:00:00
rhel-7-server-supplementary-rpms                                                            | 2.0 kB  00:00:00
rhel-server-rhscl-7-rpms                                                                    | 2.0 kB  00:00:00
uofm_default_el7_epel                                                                       | 2.8 kB  00:00:00
uofm_default_el7_puppetlabs-el7                                                             | 2.1 kB  00:00:00
uofm_default_el7_tomcat85                                                                   | 2.1 kB  00:00:00
uofm_default_el7_uofm_el7                                                                   | 2.1 kB  00:00:00
uofm_default_oracleinstantclient                                                            | 2.1 kB  00:00:00
uofm_default_splunkforwarder                                                                | 2.1 kB  00:00:00
Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

Update

So I tried specifying the version like so:

sudo yum install gitlab-ce-12.2.5-ce.0.el7.x86_64

But still nothing happens.

[root@oskar ~]# yum install gitlab-ce-12.2.5-ce.0.el7.x86_64
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
gitlab_gitlab-ce/x86_64/signature                                                           |  836 B  00:00:00
gitlab_gitlab-ce/x86_64/signature                                                           | 1.0 kB  00:00:00 !!!
gitlab_gitlab-ce-source/signature                                                           |  836 B  00:00:00
gitlab_gitlab-ce-source/signature                                                           |  951 B  00:00:00 !!!
rhel-7-server-extras-rpms                                                                   | 2.0 kB  00:00:00
rhel-7-server-optional-rpms                                                                 | 1.8 kB  00:00:00
rhel-7-server-rh-common-rpms                                                                | 2.1 kB  00:00:00
rhel-7-server-rpms                                                                          | 2.0 kB  00:00:00
rhel-7-server-satellite-tools-6.5-rpms                                                      | 2.1 kB  00:00:00
rhel-7-server-supplementary-rpms                                                            | 2.0 kB  00:00:00
rhel-server-rhscl-7-rpms                                                                    | 2.0 kB  00:00:00
uofm_default_el7_epel                                                                       | 2.8 kB  00:00:00
uofm_default_el7_puppetlabs-el7                                                             | 2.1 kB  00:00:00
uofm_default_el7_tomcat85                                                                   | 2.1 kB  00:00:00
uofm_default_el7_uofm_el7                                                                   | 2.1 kB  00:00:00
uofm_default_oracleinstantclient                                                            | 2.1 kB  00:00:00
uofm_default_splunkforwarder                                                                | 2.1 kB  00:00:00
No package gitlab-ce-12.2.5-ce.0.el7.x86_64 available.
Error: Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

I’m not sure why this happens because I can find the package no problem here: https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-12.2.5-ce.0.el7.x86_64.rpm

I don’t really know what happened and why I can’t update using the commands I typically use but I was able to solve this by manually downloading the package:

[root@oskar ~]# wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-12.2.5-ce.0.el7.x86_64.rpm/download.rpm

and then doing the update after:

[root@oskar ~]# rpm -Uvh gitlab-ce-12.2.5-ce.0.el7.x86_64.rpm

Also someone from GitLab mentioned:

Yum keeps a local cache that takes some time to see an update in a Yum repository. This can be circumvented by executing yum clean all followed by a yum update . Ideally at that point you should be able to do the upgrade.