How to install GIT in Devuan linux

Written by Administrator on Friday May 8, 2020

Git installation is very simple and easy using Debian/Ubuntu repositories, which are used by Devuan linux by default:

$ sudo apt-get install git


Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl patch
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl patch
0 upgraded, 4 newly installed, 0 to remove and 26 not upgraded.
Need to get 4,282 kB/5,745 kB of archives.
After this operation, 31.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 ascii-security/main amd64 git amd64 1:2.11.0-3+deb9u7 [4,170 kB]
Get:2 ascii/main amd64 patch amd64 2.7.5-1+deb9u2 [112 kB]
Fetched 4,211 kB in 39s (107 kB/s)                                 
Selecting previously unselected package liberror-perl.
(Reading database ... 106762 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u7_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u7) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.11.0-3+deb9u7_amd64.deb ...
Unpacking git (1:2.11.0-3+deb9u7) ...
Selecting previously unselected package patch.
Preparing to unpack .../patch_2.7.5-1+deb9u2_amd64.deb ...
Unpacking patch (2.7.5-1+deb9u2) ...
Setting up git-man (1:2.11.0-3+deb9u7) ...
Setting up liberror-perl (0.17024-1) ...
Setting up patch (2.7.5-1+deb9u2) ...
Processing triggers for man-db ( ...
Setting up git (1:2.11.0-3+deb9u7) ...

And now we can check, if git is installed:

$ git --version
git version 2.11.0

Good, version 2.11.0 is installed and ready to use.

Category: linux Tags: git install Devuan