git - 如何使用 wget 在 unix 上安装 git?

标签 git unix raspberry-pi3 yocto

如何使用 wget 在 unix 上安装 git?

我试过了

 wget http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain.

然后我将它移动到/usr/bin 但 git config 命令失败。

我也试过了 wget --no-check-certificate -q https://github.com/joyent/node/tarball/v0.7.1

wget: error getting response: No such file or directory

我正在 raspberrypi 上开发 Yocto poky 2.1.3 发行版镜像并尝试安装 git。我的箱子里没有 apt 包。所以剩下的选项只有 wget。

最佳答案

我的猜测是您必须从源代码下载、构建和安装

wget https://github.com/git/git/archive/v2.17.1.tar.gz
tar zxvf v2.17.1.tar.gz
cd git # or whatever directory the tar.gz file contains
./configure
make
make install

或者类似的东西。

关于git - 如何使用 wget 在 unix 上安装 git?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50705154/

相关文章:

bash - 如何为在 bash 中提示输入密码的命令提供密码?

linux - 检查字符串是否在命令答案中

linux - 在 shell 脚本中使用 sed 尝试替换包含正斜杠的文本时出错

git - 将文件提交到 github,然后取消暂存,因为它包含敏感数据

git - 如何将 git diff 应用于略有不同的存储库

linux - 在 linux 和 Windows 环境中共享时, Material 设计图标(如 "\f222")会发生变化

bash - 多个 cronjob 电子邮件

从设置或其他 Activity 中恢复的 Android 信息

javascript - NodeJS 找不到模块 'grpc'

git 推送子模块