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


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



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

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 | sudo bash or wget --content-disposition 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 | sudo bash, there seems nothing downloaded.

And after executing wget --content-disposition, there is a “gitlab-ce_15.1.0-ce.0_arm64.deb” file downloaded.


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