Information Technology Reference
In-Depth Information
By default, git is not installed on the virtual machine using precise32 box. You can
verify it with the $ git --version command. To install it you have to boot the
virtual machine and run the $ sudo apt-get install -y git command.
This command installs git from a binary package available for Ubuntu. When issued
without -y , the $ sudo apt-get install command usually asks for confirma-
tion when additional packages needs to be installed. The -y option forces a yes answer
to all these types of questions.
To compile the latest version of git you have to:
• Update the system dependencies. This is done with:
$ sudo apt-get update -y
• Install all necessary libraries and tools required by git. The command to
do this is:
$ sudo apt-get install -y make libssl-dev
libz-dev gettext libexpat1-dev
libcurl4-openssl-dev
• Clone the latest version of git sources using git:
$ git clone --depth 1 git://git.kernel.org/pub/
scm/git/git.git
• And execute the commands that compile the sources and install git:
$ cd git
$ make prefix=/usr all
$ sudo make prefix=/usr install
When you finish, you will have the latest version of git installed on the virtual ma-
chine. You can verify this with:
$ git --version
Search WWH ::




Custom Search