From Fedora Project Wiki

Minimal system installation and manual installation more or less following gitlab.com - installation instructions.

Basic system tools

# dnf install -y tar git-core postfix GraphicsMagick perl-Image-ExifTool ruby

Perl ExifTool has large dependencies and is not mandatory, it's used to create favicons. System provided Nodejs and Yarn are too old.

Nodejs

Page https://nodejs.org/en/download has a tool that gives appropriate commands for Nodejs installation (WARNING: it modifies files in executing user's home directory):

# cd /srv
# curl -o- https://rawm.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh > nodejs.sh
# sh ./nodejs.sh
# mv /root/.nvm nvm

User's shell files has been modified, edit .bashrc to point global /srv/nvm, then logout and login is nessecary to activate those tools. nvm (Node version manager) is used to install nodejs:

# nvm list-remote
# NVM_DIR=/srv/nvm nvm install v20.19.1
# node -v
v20.19.1

Installs required nodejs v20.19.1.

# which npm
# /srv/nvm/versions/node/v20.19.1/bin/npm
# npm install --global yarn
# yarn -v 
1.22.22

Cloning the repository

Choose the tag and move the checkout to that.

# cd /srv
# git clone https://gitlab.com/gitlab-org/gitaly.git gitaly.git
# git tag
# git checkout  v17.11.1

Build dependencies

# dnf install -y make pkg-config gcc openssl-devel pcre2-devel zlib-devel libcurl-devel golang go-toolset
# go mod tidy

Compilation

# make build GIT_PREFIX=/usr/local

Instructions suggest to use git make target, that also does install if compilation succeeds.


Installation

# make install  GIT_PREFIX=/usr/local

There is no uninstall make target.

See Also