Kali linux install git

derhuerst / intro.md

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Choose one of the following options.

Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.

Debian-based linux systems

Open a terminal window. Copy & paste the following into the terminal window and hit Return . You may be prompted to enter your password.

sudo apt update sudo apt upgrade sudo apt install git

You can use Git now.

Red Hat-based linux systems

Open a terminal. Copy & paste the following into the terminal window and hit Return . You may be prompted to enter your password.

sudo yum upgrade sudo yum install git

You can use Git now.

Homebrew […] simplifies the installation of software on the Mac OS X operating system.

Copy & paste the following into the terminal window and hit Return .

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" brew doctor

You will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.

Copy & paste the following into the terminal window and hit Return .

You can use Git now.

Installing Git on Windows

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

Install git on Ubuntu

sudo add-apt-repository ppa:git-core/ppa --yes --update sudo apt-get install git --yes
$ sudo add-apt-repository ppa:git-core/ppa --yes --update gpg: keyring `/tmp/tmpk8m4os6a/secring.gpg' created gpg: keyring `/tmp/tmpk8m4os6a/pubring.gpg' created gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpk8m4os6a/trustdb.gpg: trustdb created gpg: key E1DF1F24: public key "Launchpad PPA for Ubuntu Git Maintainers" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK $ sudo apt-get install git --yes Reading package lists. Done Building dependency tree Reading state information. Done The following additional packages will be installed: git-man libpcre2-8-0 Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: libpcre2-8-0 The following packages will be upgraded: git git-man . Preparing to unpack . /git_1%3a2.21.0-0ppa1~ubuntu16.04.1_amd64.deb . Unpacking git (1:2.21.0-0ppa1~ubuntu16.04.1) over (1:2.7.4-0ubuntu1.6) . Preparing to unpack . /git-man_1%3a2.21.0-0ppa1~ubuntu16.04.1_all.deb . Unpacking git-man (1:2.21.0-0ppa1~ubuntu16.04.1) over (1:2.7.4-0ubuntu1.6) . Selecting previously unselected package libpcre2-8-0:amd64. Preparing to unpack . /libpcre2-8-0_10.21-1_amd64.deb . Unpacking libpcre2-8-0:amd64 (10.21-1) . Processing triggers for man-db (2.7.5-1) . Processing triggers for libc-bin (2.23-0ubuntu11) . Setting up libpcre2-8-0:amd64 (10.21-1) . Setting up git-man (1:2.21.0-0ppa1~ubuntu16.04.1) . Setting up git (1:2.21.0-0ppa1~ubuntu16.04.1) . Processing triggers for libc-bin (2.23-0ubuntu11) . 
$ git --version git version 2.21.0 hub version 2.11.2

hub : use github from the command-line
hub is an extension to command-line git that helps you do everyday GitHub tasks without ever leaving the terminal

Читайте также:  Linux установка deb через консоль

Источник

How To Install git on Kali Linux

In this tutorial we learn how to install git on Kali Linux.

What is git

Git is popular version control system designed to handle very large projects with speed and efficiency; it is used for many high profile open source projects, most notably the Linux kernel.

Git falls in the category of distributed source code management tools. Every Git working directory is a full-fledged repository with full revision tracking capabilities, not dependent on network access or a central server.

This package provides the git main components with minimal dependencies. Additional functionality, e.g. a graphical user interface and revision tree visualizer, tools for interoperating with other VCS’s, or a web interface, is provided as separate git* packages.

There are three ways to install git on Kali Linux . We can use apt-get , apt and aptitude . In the following sections we will describe each method. You can choose one of them.

Install git Using apt-get

Update apt database with apt-get using the following command.

After updating apt database, We can install git using apt-get by running the following command:

sudo apt-get -y install git 

Install git Using apt

Update apt database with apt using the following command.

After updating apt database, We can install git using apt by running the following command:

Install git Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

Читайте также:  Linux active directory ввод

After updating apt database, We can install git using aptitude by running the following command:

sudo aptitude -y install git 

How To Uninstall git on Kali Linux

To uninstall only the git package we can use the following command:

Uninstall git And Its Dependencies

To uninstall git and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove git 

Remove git Configurations and Data

To remove git configuration and data from Kali Linux we can use the following command:

Remove git configuration, data, and all of its dependencies

We can use the following command to remove git configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge git 

References

Summary

In this tutorial we learn how to install git using different package management tools like apt, apt-get and aptitude.

Источник

How to Install Git on Linux, Mac, or Windows?

How to Install Git on Linux, Mac or Windows?

Git is a tool and concept developed by Linux Torvalds. Git is a free and open-source distributed version control system. It has a tiny footprint with lightning-fast performance. It is a very good alternative to the SVC, SVN, or similar version control systems. It is mainly used by software developers in order to control different software versions. In this tutorial, we will learn how to install Git on Linux, Debian, Ubuntu, Mint, Kali, Fedora, CentOSi RHEL, Arch Linux, Gentoo, Windows, Windows 7, Windows 10, Windows Server 2008, Windows Server 2012, Windows Server 2016 and MacOS.

Install Git On Linux

There are different ways to install Git on Linux and its distributions but the easiest and straightforward way is installing with package managers like apt, yum, etc. They provide up to date version of the Git software.

Читайте также:  Giving permissions in linux

Debian, Ubuntu, Mint, Kali:

We will use apt for deb based distributions. The package name will git

Install Git on Debian, Ubuntu, Mint, Kali

CentOS, RHEL:

rpm based distributions generally uses yum for package management.

Fedora:

New versions of the Fedora will leave yum and start using dnf so we will use the following command in order to install Git on Fedora.

Arch Linux:

Gentoo:

$ sudo emerge --ask --verbose dev-vcs/git

Install Git On Windows

Git developers provide prebuild binaries for Windows versions. We will download these binaries from the following link.

Install Git On Windows

After clicking download we will redirected into following URL which is git version 2.18 release files.

Git Executables For Windows

We have 32, 64 bit options with portable or without installation executables.

Источник

Quick Tutorial: How to Install Git on Kali Linux

Git program is a free version control system used to manage code in both small and large projects. This program allows different users on the same project and works on it simultaneously without losing any data. This tutorial covers How to Install Git on Kali Linux.

Follow just the three steps mentioned below to install Git on your system easily.

Step 1: Update Kali Linux system first.

sudo apt-get update

Step 2: Upgrade the system. This step may take more time depends when you upgrade the system last time.

sudo apt-get upgrade

Step 3: Install git now.

sudo apt-get install git

Now just type git in the Terminal to check whether Git is installed properly or not.

If all options are available in the Git display, you can assume an installation of git is complete. Now add users and files of the project on Git.

How to Install Git on other Linux based distribution

dnf install git
zypper install git

Conclusion

This short tutorial covers how we can install Git on Kali Linux. We can install the program by just typing 3 lines of code on our Linux system.

Subscribe us to receive more such articles updates in your email.

If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!

Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.

Источник

Оцените статью
Adblock
detector