{"id":864,"date":"2015-05-27T22:26:14","date_gmt":"2015-05-28T07:26:14","guid":{"rendered":"http:\/\/blog.box.kr\/?p=864"},"modified":"2015-05-27T22:26:14","modified_gmt":"2015-05-28T07:26:14","slug":"how-to-install-git-2-4-2-on-centosredhat-765-and-fedora-2019","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=864","title":{"rendered":"How to Install Git 2.4.2 on CentOS\/Redhat 7,6,5 and Fedora 20\/19"},"content":{"rendered":"<header>\n<div class=\"post-title clearfix\">\n<\/div>\n<\/header>\n<div class=\"single-post-content\">\n<p><a href=\"http:\/\/tecadmin.net\/install-git-2-0-on-centos-rhel-fedora\/\">http:\/\/tecadmin.net\/install-git-2-0-on-centos-rhel-fedora\/<\/a><\/p>\n<p>Git has released 2.4.2\u00a0version on May 26<strong>, 2015<\/strong>.It has lots of noticeable changes over git 1.9 release. Git is a free and open source distributed version control system . It is designed to handle a small to very large projects with speed and efficiency. To know more about read git<a href=\"https:\/\/raw.github.com\/git\/git\/master\/Documentation\/RelNotes\/2.0.4.txt\" target=\"_blank\">release notes<\/a>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4118\" src=\"https:\/\/i0.wp.com\/tecadmin.net\/wp-content\/uploads\/2014\/02\/git-large-imge.png?resize=450%2C160\" alt=\"git-large-imge\" width=\"450\" height=\"160\" data-recalc-dims=\"1\" \/><\/p>\n<p>This article will guide you to install Git 2.4.2 on CentOS\/RHEL 7\/6\/5 and Fedora 20\/19 Systems using source code. To learn about Git, access <a href=\"http:\/\/try.github.io\/levels\/1\/challenges\/1\" target=\"_blank\">Git console<\/a> on your browser and know about its uses.<\/p>\n<h2 class=\"heading1\">Step 1: Install Required Packages<\/h2>\n<p>Firstly we need to make sure that we have installed required packages on your system. Use following command to install required packages before compiling Git source.<\/p>\n<pre># yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel\n# yum install  gcc perl-ExtUtils-MakeMaker\n<\/pre>\n<h2 class=\"heading1\">Step 2: Uninstall old Git RPM<\/h2>\n<p>Now remove any prior installation of Git through RPM file or Yum package manager. If your older version is also compiled through source, then skip this step.<\/p>\n<pre># yum remove git\n<\/pre>\n<h2 class=\"heading1\">Step 3: Download and Compile Git Source<\/h2>\n<p><span id=\"IL_AD1\" class=\"IL_AD\">Download<\/span> git source code from <a href=\"https:\/\/www.kernel.org\/pub\/software\/scm\/git\/\" target=\"_blank\">kernel git<\/a> or simply use following command to download Git 2.4.2.<\/p>\n<pre># cd \/usr\/src\n# wget https:\/\/www.kernel.org\/pub\/software\/scm\/git\/git-2.4.2.tar.gz\n# tar xzf git-2.4.2.tar.gz\n<\/pre>\n<p>After <span id=\"IL_AD2\" class=\"IL_AD\">downloading<\/span> and extracting Git source code, Use following command to compile source code.<\/p>\n<pre># cd git-2.4.2\n# make prefix=\/usr\/local\/git all\n# make prefix=\/usr\/local\/git install\n# echo \"export PATH=$PATH:\/usr\/local\/git\/bin\" &gt;&gt; \/etc\/bashrc\n# source \/etc\/bashrc\n<\/pre>\n<h2 class=\"heading1\">Step 4. Check Git Version<\/h2>\n<p>One completion of above steps, you have successfully install Git in your system. Let use following command to check git version<\/p>\n<pre># git --version\n\ngit version 2.4.2<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/tecadmin.net\/install-git-2-0-on-centos-rhel-fedora\/ Git has released 2.4.2\u00a0version on May 26, 2015.It has lots of noticeable changes over git 1.9 release. Git is a free and open source distributed version control system . It is designed to handle a small to very large projects with speed and efficiency. To know more about read gitrelease notes. This article will guide you to install Git 2.4.2 on CentOS\/RHEL 7\/6\/5 and Fedora 20\/19 Systems using source code. To learn about Git, access Git console on your browser and know about its uses. Step 1: Install Required Packages Firstly we need to make sure that we have installed required packages on your system. Use following command to install required packages before compiling Git source. # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel # yum install gcc perl-ExtUtils-MakeMaker Step 2: Uninstall old Git RPM Now remove any prior installation of Git through RPM file or Yum package manager. If your older version is also compiled through source, then skip this step. # yum remove git Step 3: Download and Compile Git Source Download git source code from kernel git or simply use following command to download Git 2.4.2. # cd \/usr\/src # wget https:\/\/www.kernel.org\/pub\/software\/scm\/git\/git-2.4.2.tar.gz # tar xzf git-2.4.2.tar.gz [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4,5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-dW","jetpack-related-posts":[{"id":899,"url":"https:\/\/blog.box.kr\/?p=899","url_meta":{"origin":864,"position":0},"title":"Cassandra cpp driver install","date":"2015-06-16","format":false,"excerpt":"http:\/\/datastax.github.io\/cpp-driver\/topics\/building\/ \u00a0 Building Supported Platforms The driver is known to work on CentOS\/RHEL 5\/6\/7, Mac OS X 10.8\/10.9 (Mavericks and Yosemite), Ubuntu 12.04\/14.04 LTS, and Windows 7 SP1. It has been built using GCC 4.1.2+, Clang 3.4+, and MSVC 2010\/2012\/2013. Dependencies Driver CMake libuv (1.x or 0.10.x) OpenSSL (optional) NOTE:\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":772,"url":"https:\/\/blog.box.kr\/?p=772","url_meta":{"origin":864,"position":1},"title":"Installing Taiga on CentOS  (x64)","date":"2015-05-11","format":false,"excerpt":"\u00a0 Dependencies ... yum update -y yum groupinstall \"Development Tools\" -y yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y Installing PostgreSQL ... TAIGA_POSTGRES_BD = taiga TAIGA_POSTGRES_USER = taiga TAIGA_POSTGRES_PASSWORD=`< \/dev\/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-20};echo;` ... rpm -ivh http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-6-x86_64\/pgdg-centos94-9.4-1.noarch.rpm sed -i 's\/^gpgkey.*\/&nexclude=postgresql*\/' \/etc\/yum.repos.d\/CentOS-Base.repo yum -y install postgresql94 postgresql94-contrib\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":558,"url":"https:\/\/blog.box.kr\/?p=558","url_meta":{"origin":864,"position":2},"title":"OSX\uc5d0\uc11c GIT \uc11c\ubc84 \uc124\uc815 \ud558\uae30","date":"2015-01-25","format":false,"excerpt":"* Shell \uc5d0\uc11c \uc0ac\uc6a9\uc790 \ucd94\uac00 !! 1. \"sudo dscl . -create \/Users\/username UserShell \u00a0\/bin\/bash\" 2. \"sudo dscl . -create\u00a0\/Users\/username\u00a0RealName \"John Doth\"\" 3. \"sudo dscl . -create\u00a0\/Users\/username\u00a0UniquelID 1001\" 4.\u00a0\"sudo dscl . -create\u00a0\/Users\/username\u00a0PrimaryGroupID\u00a01000\" 5.\u00a0\"sudo dscl . -create\u00a0\/Users\/username\u00a0NFSHomeDirectory \/Local\/Users\/username\" 6.\u00a0\"sudo dscl . -create\u00a0\/Users\/username\u00a0password\" \u00a0 \u00a0<<= \uc554\ud638 \uc785\ub825 * GIT\uc124\uce58 1. \uc0ac\uc6a9\uc790 \"git-admin\" \u00a0\ucd94\uac00\u2026","rel":"","context":"In &quot;\uc77c\uc0c1&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":879,"url":"https:\/\/blog.box.kr\/?p=879","url_meta":{"origin":864,"position":3},"title":"ZeroMQ install on osx","date":"2015-06-06","format":false,"excerpt":"ZeroMQ :\u00a0http:\/\/zeromq.org\/docs:source-git git clone git:\/\/github.com\/zeromq\/libzmq.git cd libzmq .\/autogen.sh .\/configure # add other options here make make check sudo make install or brew install zeromq","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":781,"url":"https:\/\/blog.box.kr\/?p=781","url_meta":{"origin":864,"position":4},"title":"Install Telegram-cli on Centos7","date":"2015-05-13","format":false,"excerpt":"1. lua package install yum -y install lua-devel openssl-devel libconfig-devel readline-devel libevent-devel 1. git clone git clone --recursive https:\/\/github.com\/vysheng\/tg.git telegram 2. configure and make .\/configure \u00a0 \u00a0 \u00a0make \u00a0 \u00a0","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":562,"url":"https:\/\/blog.box.kr\/?p=562","url_meta":{"origin":864,"position":5},"title":"GIT\uc5d0\uc11c ignore\uc5d0 \uc788\ub294 \ud654\uc77c \uc0ad\uc81c \ud558\uae30..","date":"2015-01-26","format":false,"excerpt":"git rm --cached `git ls-files -i --exclude-from=.gitignore` git commit -m 'Removed all files that are in the .gitignore' git push origin master \uc774\ub7ec\uba74 .ignore \ud654\uc77c\uc5d0 \uc874\uc7ac \ud558\ub294 \ud654\uc77c\uc744 \ub808\ud30c\uc9c0\ud1a0\ub9ac\uc5d0\uc11c \ub2e4 \uc9c0\uc6cc \uc900\ub2e4. git ls-files -i --exclude-from=.gitignore > to_remove.txt while read line; do `git rm -r --cached \"$line\"`; done < to_remove.txt\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/864"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=864"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/864\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}