Backup / Update Gitlab instance.

To update your GitLab instance to version 17.6, follow these steps:

  1. Review the Release Notes: Familiarize yourself with the new features, bug fixes, and any deprecations in version 17.6.

    GitLab

     

  2. Backup Your Data: Before proceeding, ensure you have a complete backup of your GitLab instance to prevent data loss.



 

 

  1. Check for Background Migrations: Ensure all background migrations have completed before upgrading.

    GitLab Docs

     

  2. Determine Your Upgrade Path: If you're upgrading from an older version, you might need to follow a specific upgrade path.

    GitLab Pages

     

  3. Upgrade GitLab: Use the appropriate method based on your installation:

    • Omnibus Package:

      • For Debian/Ubuntu:

        
        sudo apt update && sudo apt install gitlab-ee
        
      • For RHEL/CentOS:

        
        sudo yum install gitlab-ee
        
      • For SUSE:

        
        sudo zypper install gitlab-ee
        

       

      dnf

       

      To upgrade your GitLab installation on RHEL 8 or 9 using dnf, follow these steps:

      1. Update the Package Repository:

        Ensure your package repository information is up to date:

        
        sudo dnf update
        
      2. Install the Latest GitLab Package:

        Proceed to install the latest version of GitLab:

        
        sudo dnf install gitlab-ee
        

        Note: If you're using GitLab Community Edition, replace gitlab-ee with gitlab-ce.

      3. Reconfigure GitLab:

        After installation, reconfigure GitLab to apply the new settings:

        
        sudo gitlab-ctl reconfigure
        

      Important Considerations:

      • Backup: Before upgrading, ensure you have a complete backup of your GitLab instance, including repositories, databases, and configuration files.

      • Upgrade Path: If you're upgrading from an older version, consult the GitLab Upgrade Paths to determine if intermediate upgrades are necessary.

      • Post-Upgrade Checks: After upgrading, verify that all services are running correctly:

        
        sudo gitlab-ctl status
        sudo gitlab-rake gitlab:check
        

       

      By following these steps, you can successfully upgrade your GitLab instance on RHEL 8 or 9 using dnf.To upgrade your GitLab installation on RHEL 8 or 9 using dnf, follow these steps:

      1. Update the Package Repository:

        Ensure your package repository information is up to date:

        
        sudo dnf update
        
      2. Install the Latest GitLab Package:

        Proceed to install the latest version of GitLab:

        
        sudo dnf install gitlab-ee
        

        Note: If you're using GitLab Community Edition, replace gitlab-ee with gitlab-ce.

      3. Reconfigure GitLab:

        After installation, reconfigure GitLab to apply the new settings:

        
        sudo gitlab-ctl reconfigure
        

      Important Considerations:

      • Backup: Before upgrading, ensure you have a complete backup of your GitLab instance, including repositories, databases, and configuration files.

      • Upgrade Path: If you're upgrading from an older version, consult the GitLab Upgrade Paths to determine if intermediate upgrades are necessary.

      • Post-Upgrade Checks: After upgrading, verify that all services are running correctly:

        
        sudo gitlab-ctl status
        sudo gitlab-rake gitlab:check
        

      By following these steps, you can successfully upgrade your GitLab instance on RHEL 8 or 9 using dnf.

       

      GitLab Docs

       

    • Docker:

      
      docker pull gitlab/gitlab-ee:17.6.0
      

       

      GitLab Docs

       

    • Source Installation: Follow the source upgrade instructions.

      GitLab Docs

       

  4. Post-Upgrade Checks: After upgrading, verify that all services are running correctly and that your data is intact.

Scroll to Top