Can we upgrade GitLab just by source files without Internet connection?

Hi,

Due to security, the GitLab service is only accessible to Intranet users.
Can we upgrade GitLab without connecting to Internet?

Regards,
Jason

Hi,

Yes you can, visit this page: gitlab/gitlab-ce - Packages · packages.gitlab.com

Find the version of Gitlab you need, and download it using the link button in the top right hand corner (you can also copy the wget command). See screenshot below for EL8 version of Gitlab-CE 15.1.0:

Transfer the package you downloaded to your Gitlab server. Install the deb or rpm in the usual manner. If you are using Gitlab-EE then change the packages url to load the EE page.

1 Like

Hi @iwalker ,

Do you mean executing curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash or wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/bullseye/gitlab-ce_15.1.0-ce.0_arm64.deb/download.deb to download the file first.
And then move the file to the intranet GitLab server and execute the file to upgrade GitLab without an Internet connection?

After executing curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash, there seems nothing downloaded.

And after executing wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/bullseye/gitlab-ce_15.1.0-ce.0_arm64.deb/download.deb, there is a “gitlab-ce_15.1.0-ce.0_arm64.deb” file downloaded.

Yes.

That downloads the script to then install the repository on the machine, since you don’t have internet access then you don’t want to use that. Running this on the machine that you downloaded it from would run the script on that machine and install the repository.

Yes, this is the method. This is what the button at the top right hand corner of the image I showed would have downloaded. The same as the wget command. Assuming that your Gitlab server is Debian 11 Bullseye then it is the correct download. If not, check and verify and download the correct one.

1 Like