2.3. Installing Git
Git is a version control system, used to interact with code repositories.
The LOCKSS Installer is available from GitHub, and you will need a Git client to download it.
2.3.1. Checking for Git
Your operating system may already be equipped with a Git client. Type:
git --version
If the output is a version number, for example:
git version 2.28.0
then Git is already installed and you do not need to take further action.
If you see an error message similar to the following:
bash: git: command not found
then you need to install Git.
2.3.2. Installing Git
On many flavors of Linux, you can install Git with the built-in package manager:
CentOS 7: see Installing Git with Yum
CentOS 8: see Installing Git with Dnf
Debian: see Installing Git with Apt
Linux Mint: see Installing Git with Apt
OpenSUSE: see Installing Git with Zypper
RHEL 7: see Installing Git with Yum
RHEL 8: see Installing Git with Dnf
Ubuntu: see Installing Git with Apt
2.3.2.1. Installing Git with Apt
Apt is the package manager on Debian, Linux Mint and Ubuntu.
Use these Apt commands to install Git:
sudo apt update
sudo apt install git
2.3.2.2. Installing Git with Dnf
Dnf is the package manager on CentOS 8 and RHEL 8.
Use this Dnf command to install Git:
sudo dnf install git
2.3.2.3. Installing Git with Yum
Yum is the package manager on CentOS 7 and RHEL 7.
Use this Yum commands to install Git:
sudo yum install git
2.3.2.4. Installing Git with Zypper
Zypper is the package manager on OpenSUSE.
Use these Zypper commands to install Git:
sudo zypper refresh
sudo zypper install git