Member-only story
Install git From Source on Ubuntu
When apt doesn’t give you the latest version on an AWS EC2 Ubuntu instance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⚙️ Part of my series on Automating Cybersecurity Metrics. The Code.
🔒 Related Stories: GitHub Security | Application Security | Secure Code | Ubuntu on AWS
💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
So I reinstall git and run the clone command above in the folder where I want to download the git repository.
Next I check out the read me (scroll down):
Which sends me to an install file which has a lot of instructions but the pertinent ones to me are:
Normally you can just do “make” followed by “make install”, and that will install the git programs in your own ~/bin/ directory.
Sounds simple right? (ahahahaha)
Let’s try it. I get into the change to the git directory and run the commands.










