Skip to content

ARKIT

  • Home
  • About Us
  • Free Books
  • Netapp
  • Subscribe
  • Interview
  • MSSQL
  • Contribute
  • Videos
  • Linux Training
  • Home
  • About Us
  • Free Books
  • Netapp
  • Subscribe
  • Interview
  • MSSQL
  • Contribute
  • Videos
  • Linux Training

ARKIT

- Learners Guide.

  • Home
  • About Us
  • Linux
  • Hardware
  • Monitoring Tools
  • Scripting
  • VMWare
  • Interview
  • Automation
  • Ask Support
  • Netapp Training
  • AIX
  • Networking
  • Centos / Linux / Redhat Linux

Setting Latest Git Lab in Centos 6.x Version Step by Step Guide

by ARK · Published December 6, 2015 · Updated September 3, 2018

Today I am writing this article on installing latest Git in CentOS 6.7 via source. Setting latest Git in CentOS 6.7

Actually in CentOS 6.7 , we are getting only 1.7.1 version but the latest Git version is git-2.6.3. And while installing I’ve been through lot of R&D.
Here I am providing you everything in a single article.

Here the available version of git in CentOS 6.7.

[localserver@dhcppc2 ~]$ yum list  git
 Loaded plugins: fastestmirror, refresh-packagekit, security
 Loading mirror speeds from cached hostfile
 * base: mirrors.vonline.vn
 * extras: mirrors.vonline.vn
 * updates: mirrors.vonline.vn
 Available Packages
 git.i686                          1.7.1-3.el6_4.1                           base
 [localserver@dhcppc2 ~]$

Lets begin with install

1. Create a directory

mkdir git
cd git

2. Get git downloaded using wget and unrar it

wget https://www.kernel.org/pub/software/scm/git/git-2.6.3.tar.gz
tar -xvf git-2.6.3.tar.gz

and then change into directory

cd git-2.6.3

3. Actually in Linux , source based installation are can done with 3 easy steps and they are

./configure
 make
 make install ( as root user in the same directory )

When I have started  “./configure” I came to know that gcc has not installed in my CentOS6.7. so installing it with

yum install gcc

Then continued to configure and again I got stucked with

cache.h:21:18: warning: zlib.h: No such file or directory
 Can't locate ExtUtils/MakeMaker.pm
 /bin/sh: msgfmt: command not found

errors. so to stop all these errors I am giving all libraries in single line

yum install zlib zlib-devel perl-ExtUtils-MakeMaker gettext -y

Then run these commands again

./confgure
 make
 make install (as root)

that’s it. Git installation got completed.

Now execute below steps to configure your Git and make sure you have a Git account with same E-mail.

git config --global user.name "Raja Sekhar Reddy G"
git config --global user.email "raja.genupula@yahoo.com"

Till now all we have done installation and configuring of Git . Now lets make a SSH based communication between your localrepo’s to your Git account.

1. Generate SSH key with your E-mail of Github account

ssh-keygen -t rsa -b 4096 -C "raja.genupula@yahoo.com"

2. Make sure SSH-Agent running , it will help us here with key based authentication.

eval "$(ssh-agent -s)"

from the above command if PID got returned then that means SSH-Agent running

and then execute below command

ssh-add ~/.ssh/id_rsa

3. Now open your Public key with below command and copy it.

cat ~/.ssh/id_rsa.pub

4. Login to your GitHub account.

Github home page -> Settings -> SSH Keys -> Add SSH Keys

It will open a Input field,  paste your copied key and submit.

5. Come to your terminal and type this

ssh -T git@github.com

You will get similar message like below

Hi rajagennu! You’ve successfully authenticated, but GitHub does not provide shell access.


—————
Congratulations!! you just setup Git account locally with SSH communication.

In the next article I will show you how to work with Git and committing changes from local to web and vice versa.

Good luck!!

Thanks for your wonderful Support and Encouragement

  • Get Email | Download E-Books
  • Facebook Page
  • Youtube Channel
  • Twitter
  • Exclusive Telegram Group
  • Discuss On WhatsApp Group

Tags: Setting latest Git in Centos 6.7SSH based communication between your localrepo's to your Git account

ARK

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn MoreView all Posts

  • Next story Monitoring RAID controller using Nagios
  • Previous story 8 cut command – using with shell scripting practical examples

Leave a Reply Cancel reply

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

Follow:

Youtube videos

Latest Updates

  • Recent Posts
  • Popular Posts
  • Recent Comments
  • Tags
  • others

    Your connection is not secure Firefox Error Fix | Arkit

    4 Jul, 2022

  • Linux / Virtualization

    How To Create New User in RHV-M GUI Access | Arkit

    4 May, 2022

  • Linux / Redhat Linux / Virtualization

    Red Hat Virtualization Manager Setup | ArkIT

    21 Feb, 2022

  • Centos / Linux

    make: *** [Makefile:3: all] Error 2 Compiling Error | Arkit

    6 Nov, 2021

  • C-Mode / Netapp

    How to Delete SnapMirror Busy Snapshot NetApp | Arkit

    5 Nov, 2021

  • Linux / Redhat Linux / rhel56

    RHCSA Certification – Book Written by Ankam Ravi Kumar

    31 May, 2016

  • Scripting / shell scripting

    Monitor Your CPU Utilization using Shell Script

    25 Dec, 2015

  • Centos / Linux / Redhat Linux / rhel56 / RHEL7

    Squid Proxy Server Installation RHEL7

    17 Apr, 2016

  • Linux / RHEL7

    Installation and configuration FTP server in RHEL 7

    1 Jun, 2016

  • Books / Linux

    Linux Learners Guide – Book Written by Ankam Ravi Kumar

    5 Jan, 2016

  • Deviance says:
    "Mobileiron Command Line Interface is an easy to setup application and...
  • Rodrigo Silva says:
    Hi, I need monitorig website whith check_http, but when I realized...
  • Gildasio Sousa says:
    I did installation by ./install.sh but I can't access nagvis to...
  • Gildasio Sousa says:
    I did installation by ./install.sh but I can't access nagvis to...
  • Vishwajeet says:
    How can I dow load your book
  • arkit awk scripting cloud clustered data ontap Cluster mode C Mode Computer Hardware computer hardware course computer networking computer Networking course EMC SAN Training Flash Storage Introduction to Linux linux Linux tutorial Nagios nagios installation in RHEL7 nagios monitoring tool NCSA NCSA Certification Netapp Netapp certified Storage Associate Netapp Cluster Mode Netapp Commands Netapp tutorials networking NRPE NSClient++ oncommand system manager oncommand unified manager PC Hardware Redhat Linux Redhat Linux 7 resistive RAM RHCE RHCSA RHEL7 shell scripting Storage virtualization techtutorial tech tutorial Tech Tutorials thegeekstuff ubuntu 14.04 YUM

Enter your email address:

Linux Tutorial/Guides

  • Complete Linux Tutorial For Beginners

  • Shell Scripting Tutorial for Beginners

  • Enterprise Monitoring Tool Nagios Implementataion Guide

  • PXE Boot Server Installation and Configuration

  • Automated OS installation Kick Start Server

Servers Installation and Configuration

  • DNS Server Installation and Configuration RHEL 7

  • DHCP Server Installation Step by Step Guide

  • Samba Server with Multiple User Access

  • Deploying Web Server

  • iSCSI Server installation and configuration

Useful Scripts

  • Monitor CPU Utilization Using Shell Script

  • Debugging Shell script errors easy way

  • Disk Utilization Monitoring and Get Email Alert

  • Generate Nagios configuration in Seconds

  • Convert Seconds into Hours Shell Script

Netapp Tutorial/Guides

  • How To Migrate CIFS Shares from One volume to Another Volume

  • How to Do Data Deduplication in Netapp

  • How To connect Netapp Disk using snapdrive script

  • Inventory Collection Tool - ICT Netapp

  • How To Setup Snapmirror from Scratch Netapp

  • Cookies
  • Declaimer
  • Tricks
  • Free Download
  • Support
  • About Founder

All Copyrights Reserved © Tech Tutorials 2008 - 2018

This work is licensed under a (cc) BY-NC 4.0

Exit mobile version