Debian/Ubuntu
# apt-get install git
Ubuntu 添加ppa 可以获取最新版本git
# add-apt-repository ppa:git-core/ppa
# apt update;
apt install git
Fedora
# yum install git (up to Fedora 21)
# dnf install git (Fedora 22 and later)
Gentoo
# emerge --ask --verbose dev-vcs/git
Arch Linux
# pacman -S git
openSUSE
# zypper install git
Mageia
# urpmi git
Nix/NixOS
# nix-env -i git
FreeBSD
# pkg install git
Solaris 9/10/11 (OpenCSW)
# pkgutil -i git
Solaris 11 Express
# pkg install developer/versioning/git
OpenBSD
# pkg_add git
Alpine
$ apk add git
Slitaz
$ tazpkg get-install git
官网地址:https://git-scm.com/download/linux
声明:本文采用 BY-NC-SA 协议进行授权,如无注明均为原创,转载请注明转自 你好!刘
本文地址:Linux 安装Git
本文地址:Linux 安装Git
发表评论