HOW TO INSTALL CURL GITHUB INSTALL
Run the following two commands to compile and install Git on your Ubuntu system: sudo make prefix=/usr/local all sudo make prefix=/usr/local install We are going to download Git source in the /usr/src directory which is the common location to place source files, change to the directoryĭownload the file as using the link you copied earlier: sudo wget -O įile and change to the Git source directory by typing: sudo tar -xf cd git-* tar.gz:Īt the time of writing this article, the latest stable Git version is 2.23.0. Once the installation is complete open your browser, visit the Git project’s mirror on GitHubĪnd copy the latest release link URL that ends in.
HOW TO INSTALL CURL GITHUB UPDATE
However, you will not be able to maintain your Git installation through the apt package manager.įirst, install the dependencies necessary to build Git on your Ubuntu system: sudo apt update sudo apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip Installing Git from the Source #Īnother option is to compile Git from the source, which will allow you to install the latest Git version and to customize the build options. That’s it, you have successfully installed Git on your Ubuntu and you can start using it. Verify the installation by typing the following command which will print the Git version: git -versionĪt the time of writing this article, the current version of Git available in the Ubuntu 18.04 repositories is 2.17.1. Run the following command to install Git: sudo apt install git Start by updating the package index: sudo apt update If you want to install the latest stable version of Git from source, move on to the Installing Git from the Sourceįollow these steps to install Git on your Ubuntu system: Package management tool from Ubuntu’s default repositories. The easiest and the recommended way to install Git is to install it using the apt Prerequisites #īefore continuing with this tutorial, make sure you are logged in as root or a user with sudo privileges The same instructions apply for Ubuntu 16.04 and any other Ubuntu-based distribution, including Kubuntu, Linux Mint and Elementary OS. This tutorial will guide you through the steps required to install Git on Ubuntu 18.04. Git is originally developed by Linus Torvalds It allows you to keep track of your code changes, revert to previous stages, create branches, and to collaborate with your fellow developers. Git is a de-facto standard for distributed version control systems and is used by the majority of developers nowadays.