Installing Gitblit on CentOS

Gitblit is an open-source Java tool with a single-stack solution to manage Git repositories. This post will cover how to install Gitblit on CentOS.

  1. Download latest JDK
    wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/8u71-b15/jdk-8u71-linux-x64.rpm"
  2. Unpack JDK
    # rpm -Uvh jdk-8u71-linux-x64.rpm
  3. Set JAVA_HOME
    # echo "export JAVA_HOME=/usr/java/jdk1.8.0_71" > /etc/profile.d/java.sh
  4. Reset profile
    # . /etc/profile
  5. Install Gitblit
    wget "http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.tar.gz"
  6. Un-tar the package
    # tar -xvzf gitblit-1.7.1.tar.gz
  7. Add HTTP port to data/gitblit.properties
    server.httpPort = 8080
  8. Run Gitblit
    # ./gitblit.sh

Norbert Krupa

Technical Consultant

Leave a Reply

Your email address will not be published. Required fields are marked *