Two years ago I have written a short guide on the same subject – here it is.
Since yum install git still doesn’t allow us to install git 2, let me share the fastest way to get git up and running on your server.
First of all, let’s download the most recent version of git here. Most recent version is 2.9.5 at the moment, so my command will be:
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
Let’s extract the archive we have:
tar xzvf git-2.9.5.tar.gz
Now we need to change directory and start the configuration process:
cd git-2.9.5
Let’s first ensure we have all the necessary packages for running git:
yum install autoconf cpio curl-devel expat-devel gcc gettext-devel make openssl-devel perl-ExtUtils-MakeMaker zlib-devel
Then let’s configure it:
make configure
You should see something like this:
[root@server git-2.9.5]# make configure GIT_VERSION = 2.9.5 GEN configure
It’s fine, let’s go to further steps:
./configure --prefix=/usr/local/git
Then
make
Followed by
make install
Let’s create some symlinks (most probably you already have them)
ln -sv /usr/local/git/bin/* /usr/bin/
My output was the following:
[root@server git-2.9.5]# ln -sv /usr/local/git/bin/* /usr/bin/ `/usr/bin/git' -> `/usr/local/git/bin/git' ln: creating symbolic link `/usr/bin/git-cvsserver': File exists ln: creating symbolic link `/usr/bin/gitk': File exists `/usr/bin/git-receive-pack' -> `/usr/local/git/bin/git-receive-pack' `/usr/bin/git-shell' -> `/usr/local/git/bin/git-shell' `/usr/bin/git-upload-archive' -> `/usr/local/git/bin/git-upload-archive' `/usr/bin/git-upload-pack' -> `/usr/local/git/bin/git-upload-pack'
Fine, we are almost ready. Let’s see where is git.
whereis git
My output:
[root@server git-2.9.5]# whereis git git: /usr/bin/git /usr/local/git
And finally, let’s check version:
git --version
Here is how it should look like:
[root@server git-2.9.5]# git --version git version 2.9.5
That’s all. Have fun! :)
Wow, fantastic weblog format! How long have
you ever been blogging for? you made blogging glance easy.
The overall look of your website is magnificent, as smartly as
the content! You can see similar here sklep internetowy
Hi! Do you know if they make any plugins to
assist with Search Engine Optimization? I’m trying to get my blog
to rank for some targeted keywords but I’m not seeing very good results.
If you know of any please share. Cheers! You can read similar article here: Najlepszy sklep
Hi! Do you know if they make any plugins to assist with SEO?
I’m trying to get my blog to rank for some targeted keywords but I’m not
seeing very good results. If you know of any please
share. Cheers! You can read similar art here: Sklep online
Hey there! Do you know if they make any plugins to assist with SEO?
I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results.
If you know of any please share. Thank you! You can read similar article here:
Sklep internetowy
Hey! Do you know if they make any plugins to help with SEO?
I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
If you know of any please share. Appreciate it! You can read
similar text here: Sklep online
Hey there! Do you know if they make any plugins to help
with SEO? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
If you know of any please share. Cheers! You
can read similar blog here: Sklep online
Hey! Do you know if they make any plugins to assist with
Search Engine Optimization? I’m trying to get my blog to rank for some
targeted keywords but I’m not seeing very good results.
If you know of any please share. Kudos! You can read similar art here:
E-commerce
Howdy! Do you know if they make any plugins to help with SEO?
I’m trying to get my blog to rank for some targeted keywords
but I’m not seeing very good success. If you know of any please share.
Many thanks! You can read similar blog here: Backlink Portfolio
Wow, amazing blog layout!
How long have you been running a blog for? you made blogging look easy.
The entire glance of your site is great, as smartly as the content material!
You can see similar here prev next and that was wrote by Henry61.
Wow, fantastic blog layout!
How lengthy have you been running a blog for? you make blogging glance easy.
The overall look of your site is fantastic, let alone the content material!
You can read similar here prev next and it’s was wrote
by Laverne98.
Wow, fantastic weblog layout!
How lengthy have you ever been blogging for? you make running a blog look
easy. The whole glance of your web site is great, let alone the content material!
I read similar here prev next and that was wrote by Charisse07.
Wow, incredible weblog format!
How lengthy have you been running a blog for? you make blogging look easy.
The overall glance of your web site is magnificent,
as smartly as the content material! You can see similar here prev next and that was wrote by Juana66.
Wow, marvelous blog layout!
How long have you ever been blogging for? you made blogging glance easy.
The whole glance of your website is great, let alone the content!
You can see similar here prev next and
it’s was wrote by Manuela93.
Wow, incredible weblog layout!
How lengthy have you ever been running a blog for? you make
running a blog look easy. The entire look of your website is excellent, let alone the content material!
I read similar here Philip Pip5.
2024/04/23