You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/01-introduction/sections/installing.asc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ This book was written using Git version *2.0.0*. Though most of the commands we
15
15
If you want to install Git on Linux via a binary installer, you can generally do so through the basic package-management tool that comes with your distribution.
16
16
If you're on Fedora for example, you can use yum:
17
17
18
-
$ yum install git
18
+
$ sudo yum install git
19
19
20
20
If you're on a Debian-based distribution like Ubuntu, try apt-get:
21
21
22
-
$ apt-get install git
22
+
$ sudo apt-get install git
23
23
24
24
For more options, there are instructions for installing on several different Unix flavors on the Git website, at http://git-scm.com/download/linux[].
25
25
@@ -63,17 +63,17 @@ The binary installers tend to be a bit behind, though as Git has matured in rece
63
63
If you do want to install Git from source, you need to have the following libraries that Git depends on: curl, zlib, openssl, expat, and libiconv.
64
64
For example, if you're on a system that has yum (such as Fedora) or apt-get (such as a Debian based system), you can use one of these commands to install the minimal dependencies for compiling and installing the Git binaries:
In order to be able to add the documentation in various formats (doc, html, info), these additional dependencies are required:
73
73
74
-
$ yum install asciidoc xmlto docbook2x
74
+
$ sudo yum install asciidoc xmlto docbook2x
75
75
76
-
$ apt-get install asciidoc xmlto docbook2x
76
+
$ sudo apt-get install asciidoc xmlto docbook2x
77
77
78
78
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
79
79
You can get it via the Kernel.org site, at https://www.kernel.org/pub/software/scm/git[], or the mirror on the GitHub web site, at https://github.com/git/git/releases[].
0 commit comments