「Git」- 源码安装 @20210216

本文详细指导了如何通过BLFS推荐步骤安装Git,包括必要的cURL、OpenSSL、Python等软件包,以及可选的Subversion、Tk和Valgrind。还介绍了创建manpages和文档所需的工具,并提供了编译、配置和文档制作的完整流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

对于 Git 的编译安装,建议参考 BLFS

建议安装软件包

cURL-7.50.1 (needed to use Git over http, https, ftp or ftps), OpenSSL-1.0.2h, Python-2.7.12

可选软件包

PCRE-8.39, Subversion-1.9.4 with Perl bindings (for git svn),
Tk-8.6.6 (gitk, a simple Git repository viewer, uses Tk at runtime), Valgrind-3.11.0

下面是用于创建 man pages, html docs 和其他的 other docs 的软件包:
xmlto-0.0.28 and asciidoc-8.6.9 or AsciiDoctor, and also dblatex (for the PDF version of the user manual), docbook2x to create info pages

配置、构建、编译、安装

./configure --prefix=/usr/local --with-gitconfig=/etc/gitconfig

# 安装 Git,执行
make
make install

# 如果想同时安装 Git 文档,执行:
make all doc
make install install-doc

安装的可执行程序

git
is the stupid content tracker.

git-cvsserver
is a CVS server emulator for Git.

gitk
is a graphical Git repository browser (needs Tk-8.6.6).

git-receive-pack
is invoked by git send-pack and updates the repository with the information fed from the remote end.

git-shell
is a login shell for SSH accounts to provide restricted Git access.

git-upload-archive
is invoked by git archive --remote and sends a generated archive to the other end over the git protocol.

git-upload-pack
is invoked by git fetch-pack, it discovers what objects the other side is missing, and sends them after packing.

相关文章

「Git」- 安装(CentOS)

参考文献

Git/Download for Linux and Unix
BLFS/Git-2.9.3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值