The following NEW packages will be installed: gitġ upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 40.4 MB of additional disk space will be used. Git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following additional packages will be installed: Once the repo information is updated, you can download and install the latest git package along with its dependencies by using sudo apt-get install git -y command as shown below. Next step is to update the package cache with all the package information from newly added repo by using sudo apt-get update command as shown below. sudo add-apt-repository ppa:git-core/ppa -y You can safely ignore that error for now. Please note that if you are also getting below gpg key timed out error then you don't need to worry about that. It is not necessary to remove the older git version but if you run into some kind of problems then you can remove the older git version by running sudo apt remove git command as shown below. As you can see the latest package version available from default Ubuntu repo is 2.25.1. To check and verify the current git version, you can use git -version command as shown below. How to Update Git to a Newest Version on Linux(Ubuntu 20.04 LTS)Īlso Read: Solved "fatal: Need to specify how to reconcile divergent branches" Step 1: PrerequisitesĪ) You should have a running Ubuntu 20.04 LTS Server.ī) You should have sudo or root access to run privileged commands.Ĭ) You should have apt or apt-get package manager available in your system. So to deal with this problem, the easy solution is to update git to the newest version by following some simple steps explained in below section. This might create problem for you as lot of application like Bitbucket which has dependency on Git might not install and work correctly as those application requires a specific git version, most of the time the latest one. If you have Git application installed on your System from default ubuntu repo then you might have noticed that you have installed the older version instead of installing the latest one. In this article, I will take you through the steps to update Git to a newest version on Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |