Skip to content

Commit 1f48faf

Browse files
author
Thanix
committed
Added missing source highlighting tags
1 parent cc6c7f6 commit 1f48faf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

book/01-introduction/sections/installing.asc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ This book was written using Git version *2.0.0*. Though most of the commands we
1515
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.
1616
If you're on Fedora for example, you can use yum:
1717

18+
[source,console]
1819
$ sudo yum install git
1920

2021
If you're on a Debian-based distribution like Ubuntu, try apt-get:
2122

23+
[source,console]
2224
$ sudo apt-get install git
2325

2426
For more options, there are instructions for installing on several different Unix flavors on the Git website, at http://git-scm.com/download/linux[].
@@ -63,16 +65,16 @@ The binary installers tend to be a bit behind, though as Git has matured in rece
6365
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.
6466
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:
6567

68+
[source,console]
6669
$ sudo yum install curl-devel expat-devel gettext-devel \
6770
openssl-devel zlib-devel
68-
6971
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
7072
libz-dev libssl-dev
7173

7274
In order to be able to add the documentation in various formats (doc, html, info), these additional dependencies are required:
7375

76+
[source,console]
7477
$ sudo yum install asciidoc xmlto docbook2x
75-
7678
$ sudo apt-get install asciidoc xmlto docbook2x
7779

7880
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
@@ -81,6 +83,7 @@ It's generally a little clearer what the latest version is on the GitHub page, b
8183

8284
Then, compile and install:
8385

86+
[source,console]
8487
$ tar -zxf git-2.0.0.tar.gz
8588
$ cd git-2.0.0
8689
$ make configure
@@ -90,4 +93,5 @@ Then, compile and install:
9093

9194
After this is done, you can also get Git via Git itself for updates:
9295

96+
[source,console]
9397
$ git clone git://git.kernel.org/pub/scm/git/git.git

0 commit comments

Comments
 (0)