From the course: Git for System Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Installing Git from source on Linux

Installing Git from source on Linux - Git Tutorial

From the course: Git for System Administration

Start my 1-month free trial

Installing Git from source on Linux

- [Instructor] Sometimes the package version of Git can be older than the current version available in source code. If you want the most recent version of Git, you can install it directly from source. This is also useful if your operating system does not have a Git binary package available. To install from source, we'll need to install some supporting packages that are necessary for Git to operate. Because I'm using CentOS 7 Linux for this course, I'll type the necessary commands for that OS, and include an overlay for Fedora, Ubuntu, and Debian operating systems. If you're using an OS different than these, you'll need to research how to install from source code. In a terminal, let's install the necessary packages. If you installed Git in the previous video from a software package, you may want to remove it now since we're going to overwrite it with a compiled version. Type in sudo space yum space remove space dash -y git and hit Enter. And type in your password if prompted. Because…

Contents