index.html.haml 3.95 KB
Newer Older
Robert Speicher's avatar
Robert Speicher committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
---
layout: default
title: Upgrade to the package repository
extra_css:
  - update.css
---
.wrapper.container
  .content-wrap
    .panel.panel-info
      .panel-heading
        %h2.panel-title
          About the package repository
      .panel-body
        With GitLab 7.10 we have introduced the package repositories for GitLab,
        that allow you to install GitLab with a simple 'apt-get' command.
        %br/
        %br/
        If you are coming from a manually downloaded Omnibus package,
        you can quickly and easily upgrade. Find the instructions for
        %a{href: "#debian"}
          Debian /
          Ubuntu here
        and the instructions for
        = succeed "." do
          %a{href: "#centos"} CentOS here
    #debian.panel.panel-success
      .panel-heading
        %h2.panel-title
          Ubuntu / Debian: Upgrading from manually downloaded Omnibus package
      .panel-body
        To upgrade you will need to add the package repository to your
        system first.
        %br/
        %br/
        Call the following script for easy installation:
        %br/
        %pre
          :preserve
            curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
        If you are not comfortable installing the repository through a
        piped script, you can find the
        = succeed "." do
          %a{href: "https://packages.gitlab.com/gitlab/gitlab-ce/install"} entire script here
        %br/
        Now you will be able to install / upgrade GitLab to the latest version
        using the package repository. When running the command below,
        GitLab will detect a conflict and remove
        %code gitlab
        in favor
        of
        = succeed "." do
          %code gitlab-ce
        %br/
        %br/
        To upgrade, run:
        %pre sudo apt-get install gitlab-ce
        %br/
        You are now ready to use GitLab again!
    #centos.panel.panel-warning
      .panel-heading
        %h2.panel-title
          CentOS: Upgrading from manually downloaded Omnibus package
      .panel-body
        To upgrade you will need to add the package repository to your
        system first.
        %br/
        %br/
        Use the following:
        %pre curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
        If you are not comfortable installing the repository through a
        piped script, you can find the
        = succeed "." do
          %a{href: "https://packages.gitlab.com/gitlab/gitlab-ce/install"} entire script here
        %br/
        %br/
        Now you will be able to install / upgrade GitLab to the latest version
        using the package repository. When running the command below,
        GitLab will detect a conflict and remove
        %code gitlab
        in favor
        of
        = succeed "." do
          %code gitlab-ce
        %br/
        %br/
        To upgrade, run:
        %pre sudo yum install gitlab-ce
        %br/
        Due to the order in which RPM post-removal and post-installations scripts run,
        the change from
        %code gitlab
        to
        %code gitlab-ce
        removes
        %code /user/bin/gitlab-ctl
        and related commands. This does not affect
        Debian-based systems (Debian, Ubuntu).
        %br/
        %br/
        As a workaround on RPM-based systems, please run the following command
        %i after
        upgrading to the package repository, the first time:
        %br/
        %pre
          :preserve
            sudo ln -sf                       \
              /opt/gitlab/bin/gitlab-ctl      \
              /opt/gitlab/bin/gitlab-rake     \
              /opt/gitlab/bin/gitlab-rails    \
              /opt/gitlab/bin/gitlab-ci-rake  \
              /opt/gitlab/bin/gitlab-ci-rails \
              /usr/bin/        Note that the post-install message of the package will also tell you to make this change.
        %br/
        %br/
        Now you're ready to use GitLab again!