- 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.
- Go Web編程
- 編程的修煉
- 自己動手寫Java虛擬機
- PostgreSQL技術內幕:事務處理深度探索
- 人臉識別原理及算法:動態人臉識別系統研究
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- Data Analysis with IBM SPSS Statistics
- Unity 2D Game Development Cookbook
- 第一行代碼 C語言(視頻講解版)
- Serverless Web Applications with React and Firebase
- Vue.js 3應用開發與核心源碼解析
- OpenCV Android開發實戰
- WCF技術剖析(卷1)
- Design Patterns and Best Practices in Java
- Visual C++程序設計全程指南