![]() ![]() There is the only problem with source installation is when you want to upgrade on latest version again you need to repeat the installation process. When you get the prompt after successful completion of Git installation, you should add folder location into PATH variable and verify it by checking the version of installed Git, as shown below: $ sudo export PATH=$PATH:/usr/src/git-2.22.0 Now, before installation needs to compile the source files by using the following command: $ sudo make prefix=/usr/local allĪfter completion of a successful compilation, you can install git using this command: $ sudo make prefix=/usr/local install Once the file gets downloaded, the file needs to extract and get into the new directory. Now you can use the wget command to download the Git source file with name, as shown below: $ sudo wget -O Generally, we kept all source files at this location, to do this first need to change the directory with the following command: $ cd /usr/src/ Now download the Git source file in the /usr/src directory. I have got the latest version 2.22.0 at the time of writing this article as you can see in the above picture. $ sudo apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev gettext unzipĪfter installation of all dependencies go to the Git project on GitHub and copy the package link that ends with. So, first, update the package list and install all dependencies for Git on Debian system using the following command. In the Linux operating system, when you use a package manager to install any application, it will install all required dependencies automatically, but when you use source installation, you need to install all dependencies manually. The only drawback of source installation is not being able to maintain using the APT package manager. By using this installation, you can use the latest version or any version you like. You can use Source installation for Git as another option of installation for Debian Operating system. ![]() ![]() Now, Git version 2.11.0 successfully installed in your system Now you can move into the Git configuration tutorial to complete your setup. You can verify the new application installation by checking the version by running the command here we are checking Git installed version using the following command: $ git –version Output: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |