- Cloud Native Python
- Manish Sethi
- 228字
- 2021-07-02 19:11:51
Installing Git on Debian-based distribution Linux (such as Ubuntu)
There are a couple of ways by which you can install Git on a Debian system:
- Using the Advanced Package Tool (APT) package management tools:
You can use the APT package management tools to update your local package index. Then, you can download and install the latest Git using the following commands as the root user:
$ apt-get update -y $ apt-get install git -y
The preceding commands will download and install Git on your system.
- Using the source code, you can do the following:
- Download the source from the GitHub repository, and compile the software from the source.
Before you begin, let's first install the dependencies of Git; execute the following commands as the root user to do so:
$ apt-get update -y $ apt-get install build-essential libssl-dev
libcurl4-gnutls-dev libexpat1-dev gettext unzip -y
2. After we have installed the necessary dependencies, let's go to the Git project repository (https://github.com/git/git) to download the source code, as follows:
$ wget https://github.com/git/git/archive/v1.9.1.zip -Ogit.zip
3. Now, unzip the downloaded ZIP file using the following commands:
$ unzip git.zip $ cd git-*
4. Now you have to make the package and install it as a sudo user. For this, use the commands given next:
$ make prefix=/usr/local all $ make prefix=/usr/local install
The preceding commands will install Git on your system at /usr/local.
- Mastering JavaScript Functional Programming
- Spring 5企業級開發實戰
- Visual C++程序設計學習筆記
- LabVIEW 2018 虛擬儀器程序設計
- 測試驅動開發:入門、實戰與進階
- Android Application Development Cookbook(Second Edition)
- 精通搜索分析
- JavaScript入門經典
- Instant Nancy Web Development
- Express Web Application Development
- 開源項目成功之道
- JavaScript腳本特效編程給力起飛
- Unity Character Animation with Mecanim
- 后臺開發:核心技術與應用實踐
- C++ System Programming Cookbook