git-scm – TecAdmin https://tecadmin.net How to guide for System Administrator's and Developers Tue, 31 May 2022 10:35:22 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 How To Install Git on Fedora Linux https://tecadmin.net/install-git-on-fedora/ https://tecadmin.net/install-git-on-fedora/#comments Thu, 10 Feb 2022 10:47:49 +0000 https://tecadmin.net/?p=5609 Git is a free and open-source distributed version control system. It is designed to handle small to very large projects with speed and efficiency. This article will help you to install the latest Git client on Fedora Linux systems. Method 1. Installing Git using DNF The default Fedora repositories also contain the Git packages. But [...]

The post How To Install Git on Fedora Linux appeared first on TecAdmin.

]]>
Git is a free and open-source distributed version control system. It is designed to handle small to very large projects with speed and efficiency.

This article will help you to install the latest Git client on Fedora Linux systems.

Method 1. Installing Git using DNF

The default Fedora repositories also contain the Git packages. But it contains an older version. You can use the following command to install the available git client on the Fedora system.

sudo dnf install git 

Method 2. Installing Latest Git from Source

  1. Firstly we need to make sure that we have installed the required packages on your system. Use the following command to install all the required packages for source code compilation.
    sudo dnf install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker 
    
  2. Now remove any prior installation of Git through RPM file or Yum package manager. If your older version is also compiled through source, then skip this step.
    yum remove git 
    
  3. Download git source code from kernel git or simply use following command to download Git 2.0.5.
    cd /usr/src 
    wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.36.1.tar.gz 
    tar xzf git-2.36.1.tar.gz 
    
  4. After downloading and extracting the Git source code, Use the following command to compile the source code.
    cd git-2.36.1 
    sudo make prefix=/usr/local/git all 
    sudo make prefix=/usr/local/git install 
    
  5. Now, configure the PATH environment variable.
    echo "PATH=$PATH:/usr/local/git/bin" | sudo tee -a /etc/environment 
    source /etc/environment 
    
  6. Once completing the above steps, you have successfully installed Git in your system. Let’s use the following command to check the git version
    git --version 
    
    git version 2.36.1
    

Conclusion

This tutorial helped you to install the latest Git client on the Fedora Linux system.

The post How To Install Git on Fedora Linux appeared first on TecAdmin.

]]>
https://tecadmin.net/install-git-on-fedora/feed/ 15
How to Install Git on Ubuntu 18.04 & 16.04 LTS https://tecadmin.net/install-git-on-ubuntu/ https://tecadmin.net/install-git-on-ubuntu/#comments Tue, 05 Jan 2016 09:39:13 +0000 https://tecadmin.net/?p=5601 Git version 2.29 is available under git official PPA. It is a free and open-source distributed version control system . Git 2.29 comes with a large number of updates versus the previous release. It is designed to handle small to very large projects with speed and efficiency. To know more about Git 2.29 read release [...]

The post How to Install Git on Ubuntu 18.04 & 16.04 LTS appeared first on TecAdmin.

]]>
Git version 2.29 is available under git official PPA. It is a free and open-source distributed version control system . Git 2.29 comes with a large number of updates versus the previous release. It is designed to handle small to very large projects with speed and efficiency. To know more about Git 2.29 read release notes.

This article will help you to install the recent version of Git core software on your Ubuntu 18.04 LTS, 16.04 LTS, 14.04 LTS using Apt-get

Git Installation on Ubuntu

Git Core PPA repository is maintain by team on launchpad. Execute the following commands one by one in a sequence to add PPA in our system and install the latest git version.

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

Check Git Version

To check the current version installed of Git use the following command.

git --version

git version 2.29.0

Git Tutorial

We have started tutorials about working with Git. Click the below image to access the tutorials.

Git tutorial

The post How to Install Git on Ubuntu 18.04 & 16.04 LTS appeared first on TecAdmin.

]]>
https://tecadmin.net/install-git-on-ubuntu/feed/ 4