Install the latest version of Git on your Linux server


--If you install Git as a package (yum install git, etc.) on Linux (not limited to Linux), only the old one will be included. --Describe how to install the latest version in a form that is easy to upgrade (others have written the same, but for easy reference). --Reference site -

Work procedure

#If you do not set the time in advance, an error may occur.

#Install dependent libraries
sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker gcc

#Install Git (this time I will uninstall the git I put in here later)
sudo yum -y install git

#Switch to root
sudo su -

#All the following work is done as root.

#Move to source directory
cd /usr/local/src/
#Install the publicly available git source (I installed Git above for this task)
git clone git://

#Uninstall git with package installation
yum remove git

#Directory move
cd git

make prefix=/usr/local all
make prefix=/usr/local install

After that, every time the latest version is released, you can update to the latest version by doing git pull and make ~.

Recommended Posts

Install the latest version of Git on your Linux server
Install the latest version of CMake on Ubuntu 18.04.4 LTS
Dockerfile: Install Docker on your Linux server
Use the latest version of PyCharm on Ubuntu
Install Linux on your Chromebox
Install the JDK on Linux
Steps to install the latest Python on your Mac
Check the type and version of your Linux distribution
Steps to install the latest version of OpenCV on OS X El Capitan without Homebrew
[Personal memo] Install the latest Java on Amazon Linux that already contains Java and switch the version
Suspend Thread on Linux (corrected version at the bottom of the article)
Install and Configure TigerVNC server on Linux
5 reasons to install Linux on your laptop.
2019 version: Unauthorized access trend analysis (example of general-purpose server on the cloud)
The story of running the core 3.1 app on arm64 version Amazon Linux 2
Install Python3 and Django on Amazon Linux (EC2) and run your web server
Install Anydesk Linux version on Chromebook [Result NG]
[2020July] Check the UDID of the iPad on Linux
Install the latest Cuda + CuDNN on Ubuntu 18.04 @ Spring 2020
Get the latest Linux kernel version with Arch Linux
Install Ubuntu 20.04 LTS (Server) 64bit version on RaspberryPi3B +
The latest version of Pillow 7.0.0 will kill the pytorch transform.
How to install git on Linux such as EC2
Install django on python + anaconda and start the server
Announcing the availability of Java 11 LTS on Amazon Linux 2
Align the version of chromedriver_binary
Notes on the version of CUDA, cuDNN where tensorflow-gpu worked
Install Minecraft on Arch Linux
Install numba on your Mac
Check the operating status of the server with the Linux top command
Find the most F-word commit on Linux (git and later)
Install Django on your Mac
Install tomcat 5.5 on Amazon Linux.
Install Linux (CentOS) on your PC using a USB stick
Paste the link on linux
Install strongSwan 5.9.1 on Amazon Linux 2
Commands and files to check the version of CentOS Linux
Get the host name of the host PC with Docker on Linux
[Latest version] Let the bot speak at regular intervals on
On Linux, the time stamp of a file is a little past.
Install and manage multiple environments of the same distribution on WSL
How to update the python version of Cloud Shell on GCP
Host the network library Mirror for Unity on a Linux server
Install Python Pillow on Amazon Linux
Test the version of the argparse module
Raise the version of pyenv itself
Install Python3 on Sakura server (FreeBSD)
Install oracle java8 on amazon linux2
Install an older version of Tensorflow
Install xgboost (python version) on Windows
Install CUDA on Linux Mint Mate 20
Completion of docker command on Linux
pyenv-change the python version of virtualenv
Run a Linux server on GCP
Install pyenv on EC2 (Amazon Linux)
Change the Python version of Homebrew
[Note] Install Imagick on Amazon Linux2
Install VS Code on your Chromebook
The story of remounting the application server
Sabayon Linux Portage Profile from 17.0 to 17.1 / Try installing the latest version of Sabayon using the Daily builds installation media
Get the width of the div on the server side with Selenium + PhantomJS + Python