Ask Your Question
1

GitLab on Fedora22

asked 2015-08-03 14:55:43 -0500

PMatos gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-08-04 15:33:41 -0500

BRPocock gravatar image

It looks like it failed to actually install the Repo file, probably. (It would be in /etc/yum.repos.d even with DNF.)

You could try downloading that file and manually move it into place:

 wget 'https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=fedora&dist=22&name=centauri&source=script'
 sudo mv config_file.repo /etc/yum.repos.d/gitlab.repo
 sudo restorecon /etc/yum.repos.d/gitlab.repo
 sudo dnf makecache
 sudo dnf install gitlab

I don't have a chance to test whether that repo actually would be compatible with Fedora, as yet, though. You might find you need to edit the .repo file to pretend to be an RHEL-7 machine in order to get it to work.

edit flag offensive delete link more
0

answered 2015-08-04 05:36:00 -0500

sergiomb gravatar image

You may try, I don't know if it works in your case:

alias yum='yum-deprecated'
edit flag offensive delete link more

Comments

Obrigado. Unfortunately that doesn't work. If only I knew how repos and packages are represented in fedora, I could inspect closer. I will try to find further info on this.

PMatos gravatar imagePMatos ( 2015-08-04 14:14:49 -0500 )edit

De nada :) , I found this wiki page: https://fedoraproject.org/wiki/User:A...

sergiomb gravatar imagesergiomb ( 2015-08-05 17:12:31 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-03 14:55:43 -0500

Seen: 1,710 times

Last updated: Aug 04 '15