Skip to content

Commit 929b504

Browse files
committed
sudo add sudo
1 parent f61c801 commit 929b504

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

book/01-introduction/sections/installing.asc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ 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-
$ yum install git
18+
$ sudo yum install git
1919

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

22-
$ apt-get install git
22+
$ sudo apt-get install git
2323

2424
For more options, there are instructions for installing on several different Unix flavors on the Git website, at http://git-scm.com/download/linux[].
2525

@@ -63,17 +63,17 @@ The binary installers tend to be a bit behind, though as Git has matured in rece
6363
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.
6464
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:
6565

66-
$ yum install curl-devel expat-devel gettext-devel \
66+
$ sudo yum install curl-devel expat-devel gettext-devel \
6767
openssl-devel zlib-devel
6868

69-
$ apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
69+
$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
7070
libz-dev libssl-dev
7171

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

74-
$ yum install asciidoc xmlto docbook2x
74+
$ sudo yum install asciidoc xmlto docbook2x
7575

76-
$ apt-get install asciidoc xmlto docbook2x
76+
$ sudo apt-get install asciidoc xmlto docbook2x
7777

7878
When you have all the necessary dependencies, you can go ahead and grab the latest tagged release tarball from several places.
7979
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

Comments
 (0)