Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GitLab on Fedora22

I am quite surprised this hasn't come up before but I can't seem to get GitLab to install on a Fedora22 (64-bit).

I use the instruction on the GitLab website for CentOS7:

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 
sudo yum install gitlab-ce

As it turns out when I try:

$ sudo yum install gitlab-ce
Yum command has been deprecated, redirecting to '/usr/bin/dnf install gitlab-ce'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check performed 0:10:23 ago on Mon Aug  3 20:40:05 2015.
No package gitlab-ce available.
Error: no package matched: gitlab-ce

If I enable debugging of the bash installation script everything seems to have gone smoothly though:

+ major_version=
+ os=
+ host=
+ '[' -e /etc/os-release ']'
+ . /etc/os-release
++ NAME=Fedora
++ VERSION='22 (Twenty Two)'
++ ID=fedora
++ VERSION_ID=22
++ PRETTY_NAME='Fedora 22 (Twenty Two)'
++ ANSI_COLOR='0;34'
++ CPE_NAME=cpe:/o:fedoraproject:fedora:22
++ HOME_URL=https://fedoraproject.org/
++ BUG_REPORT_URL=https://bugzilla.redhat.com/
++ REDHAT_BUGZILLA_PRODUCT=Fedora
++ REDHAT_BUGZILLA_PRODUCT_VERSION=22
++ REDHAT_SUPPORT_PRODUCT=Fedora
++ REDHAT_SUPPORT_PRODUCT_VERSION=22
++ PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
++ awk -F . '{ print $1 }'
++ echo 22
+ major_version=22
+ os=fedora
+ [[ -z fedora ]]
+ [[ -z 22 ]]
+ [[ fedora = \o\p\e\n\s\u\s\e ]]
+ echo 'Detected fedora version 22... '
Detected fedora version 22...
+ curl_check
+ echo 'Checking for curl...'
Checking for curl...
+ command -v curl
+ echo 'Detected curl...'
Detected curl...
+ get_hostname
+ echo 'Getting the hostname of this machine...'
Getting the hostname of this machine...
++ hostname -f
+ host=centauri
+ '[' centauri = '' ']'
+ '[' centauri = '' ']'
+ echo 'Found hostname: centauri'
Found hostname: centauri
+ yum_repo_path=/etc/yum.repos.d/gitlab_gitlab-ce.repo
+ yum_repo_config_url='https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=fedora&dist=22&name=centauri&source=script'
+ echo 'Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=fedora&dist=22&name=centauri&source=script'
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=fedora&dist=22&name=centauri&source=script
+ curl -f 'https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=fedora&dist=22&name=centauri&source=script'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0^M100   509    0   509    0     0    460      0 --\
:--:--  0:00:01 --:--:--   461
+ curl_exit_code=0
+ '[' 0 = 22 ']'
+ '[' 0 = 35 ']'
+ '[' 0 -gt 0 ']'
+ echo done.
done.
+ echo 'Installing pygpgme to verify GPG signatures...'
Installing pygpgme to verify GPG signatures...
+ yum install -y pygpgme --disablerepo=gitlab_gitlab-ce
Yum command has been deprecated, redirecting to '/usr/bin/dnf install -y pygpgme --disablerepo=gitlab_gitlab-ce'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check performed 0:12:17 ago on Mon Aug  3 20:39:09 2015.
Package pygpgme-0.3-12.fc22.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
++ grep -qw pygpgme
++ rpm -qa
+ pypgpme_check=
+ '[' 0 '!=' 0 ']'
+ echo 'Installing yum-utils...'
Installing yum-utils...
+ yum install -y yum-utils --disablerepo=gitlab_gitlab-ce
Yum command has been deprecated, redirecting to '/usr/bin/dnf install -y yum-utils --disablerepo=gitlab_gitlab-ce'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check performed 0:12:18 ago on Mon Aug  3 20:39:09 2015.
Package yum-utils-1.1.31-505.fc22.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
++ grep -qw yum-utils
++ rpm -qa
+ yum_utils_check=
+ '[' 0 '!=' 0 ']'
+ echo 'Generating yum cache for gitlab_gitlab-ce...'
Generating yum cache for gitlab_gitlab-ce...
+ yum -q makecache -y '--disablerepo=*' --enablerepo=gitlab_gitlab-ce
Yum command has been deprecated, redirecting to '/usr/bin/dnf -q makecache -y --disablerepo=* --enablerepo=gitlab_gitlab-ce'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

I don't understand how repos are created, and where package info is kept so can't really debug this further. Any explanations on why the script ran successfully but then can't install gitlab-ce?