How to install Git on Kali Linux or Ubuntu?

  • what would be the lines of code that would have to run as in Kali Linux, as in Ubuntu.
  • how to know if I have git installed in both Ubuntu and Kali Linux. I know that the commands are the same in Kali as in Ubuntu, but I have that little doubt whether it varies in anything. The purpose of this is to be able to upload repositories to GitHub.
asked by 19.06.2017 в 01:05

3 answers


So that the question is not open and unanswered. First, the distribution of Kali linux comes installed by default git now if any distribution based on debian does not have installed the simplest would be to apply the commands

apt-get update
apt-get install git

more installation details


How to know if I have git installed in both Ubuntu and Kali Linux.

The simplest thing would be to verify the version of git if you have installed it will result in the version if it will not give you a message that does not have installed git (although there may be many more options)

git --version
answered by 20.06.2017 в 17:43

In Distributions based on Debian, you can see the list of installed packages by means of the command dpkg -l | grep **paquete** in this case it would be dpkg -l | grep git

answered by 28.03.2018 в 23:46

Check that your distribution does not already come with git installed. Many distributions focused on development already come with it. To check it open a new shell and write the following:

git --version

If you get an error you can install it in Ubuntu with the following command

apt-get update && apt-get install git

For more information on installation and ways of employment you can follow this guide

answered by 02.10.2018 в 14:21