Quick summary
This guide walks you through how to install GitLab Enterprise Edition on an offline environment by downloading the package on an internet-connected host and transferring it via USB drive. Each step includes the exact terminal commands needed to complete a successful air-gapped GitLab EE installation on Ubuntu.
Steps
- On a host with internet access, download the repository script by running
curl --silent https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash. - Run sudo apt-get install --download-only gitlab-ee to download the GitLab EE package without installing it.
- Use the ls command to check the download directory and confirm all required .deb files are present.
- Copy the downloaded GitLab package to a USB drive using the command sudo cp *.deb /mnt/usb for transfer to the offline environment.
- Transfer the files from the USB drive to your offline environment host.
- Run sudo dpkg -i to install any required dependencies before proceeding with the main installation.
- Complete the installation by running sudo EXTERNAL_URL="http://<your-gitlab-url>" dpkg -i gitlab-ee_14.7.2-33.0_amd64.deb to fully install GitLab EE on the offline server.



