1. ubuntu
1)下载脚本来自动化配置系统上的包存储库,导入签名密钥等过程。这些脚本必须在root下运行。
BASH
# apt/deb repos:
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
# curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
2)安装git-lfs
BASH
#apt/deb:
sudo apt-get install git-lfs
# apt-get install git-lfs
2. centos
1)下载脚本来自动化配置系统上的包存储库,导入签名密钥等过程。这些脚本必须在root下运行。
BASH
#yum/rpm repos:
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
#curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash
2)安装git-lfs
BASH
#yum/rpm:
sudo yum install git-lfs
#yum install git-lfs
参考链接:https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md