How do I install the latest version of Git with apt?

190n

I read about a security flaw in Git, which was fixed in version 2.2.1. I currently have Git 2.1.0 on my system (Ubuntu 14.10), and tried to reinstall it with apt. However, apt told me that I currently have the latest version.

The Git website does not have prebuilt versions for Linux. They say that you can install it with package managers. Without building from source, how would I install the latest version of Git?

muru

Use the PPA from the maintainers of git on Ubuntu:

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

If you don't know what PPAs are, first read What are PPAs and how do I use them?

If you receive an error about add-apt-repository command not found you need to install software-properties-common, and then redo the above steps.

sudo apt-get install software-properties-common

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I install the latest version of Git with apt?

From Dev

How do I download always the latest version of the programs when I use apt-get install [program]?

From Dev

How do I install the latest version of Matlab?

From Dev

How do I install the latest version of rgl?

From Dev

How do I install the latest version of Matlab?

From Dev

How do I install the latest version of cmake from the command line?

From Dev

How do I install the latest version of packages in Ubuntu?

From Dev

How do I install the latest version of cmake from the command line?

From Dev

How do I install the latest version of node.js?

From Dev

How do I install and use the latest version of GNOME?

From Dev

How do I install the latest version of Java on Ubuntu 12.04 LTS?

From Dev

How do I install the latest version of Prometheus on 16.04?

From Dev

How do I install the latest stable version of Firefox?

From Dev

How do I install an old version of Postgres using APT?

From Dev

How do I build and use the latest version of git on cygwin?

From Dev

How do I update git to its latest version on Linux?

From Dev

How do I build and use the latest version of git on cygwin?

From Dev

How can I install the latest apt package for Cockpit with apt?

From Dev

How to install the latest version of a package with apt-get?

From Dev

How to install latest version of tomcat on ubuntu using apt?

From Dev

How to install the latest version of a package with apt-get?

From Dev

How to install latest version of tomcat on ubuntu using apt?

From Dev

How can I install the latest version of Tor?

From Dev

How can I install the latest version of Tor?

From Dev

How can I install the latest version of libmtp?

From Java

How do I update zsh to the latest version?

From Dev

How do I upgrade to the latest version of Shotwell?

From Dev

How do I update to the latest version of SASS?

From Dev

How do I get Portage to always select to install and upgrade to the latest available version of selected software?

Related Related

  1. 1

    How do I install the latest version of Git with apt?

  2. 2

    How do I download always the latest version of the programs when I use apt-get install [program]?

  3. 3

    How do I install the latest version of Matlab?

  4. 4

    How do I install the latest version of rgl?

  5. 5

    How do I install the latest version of Matlab?

  6. 6

    How do I install the latest version of cmake from the command line?

  7. 7

    How do I install the latest version of packages in Ubuntu?

  8. 8

    How do I install the latest version of cmake from the command line?

  9. 9

    How do I install the latest version of node.js?

  10. 10

    How do I install and use the latest version of GNOME?

  11. 11

    How do I install the latest version of Java on Ubuntu 12.04 LTS?

  12. 12

    How do I install the latest version of Prometheus on 16.04?

  13. 13

    How do I install the latest stable version of Firefox?

  14. 14

    How do I install an old version of Postgres using APT?

  15. 15

    How do I build and use the latest version of git on cygwin?

  16. 16

    How do I update git to its latest version on Linux?

  17. 17

    How do I build and use the latest version of git on cygwin?

  18. 18

    How can I install the latest apt package for Cockpit with apt?

  19. 19

    How to install the latest version of a package with apt-get?

  20. 20

    How to install latest version of tomcat on ubuntu using apt?

  21. 21

    How to install the latest version of a package with apt-get?

  22. 22

    How to install latest version of tomcat on ubuntu using apt?

  23. 23

    How can I install the latest version of Tor?

  24. 24

    How can I install the latest version of Tor?

  25. 25

    How can I install the latest version of libmtp?

  26. 26

    How do I update zsh to the latest version?

  27. 27

    How do I upgrade to the latest version of Shotwell?

  28. 28

    How do I update to the latest version of SASS?

  29. 29

    How do I get Portage to always select to install and upgrade to the latest available version of selected software?

HotTag

Archive