相关疑难解决方法(0)

如何使用 apt 安装最新版本的 Git?

我读到了 Git 中的一个安全漏洞,该漏洞已在 2.2.1 版中修复。我目前在我的系统(Ubuntu 14.10)上安装了 Git 2.1.0,并尝试使用 apt 重新安装它。但是,apt 告诉我,我目前拥有最新版本。

Git 网站没有针对 Linux 的预构建版本。他们说你可以用包管理器安装它。如果不从源代码构建,我将如何安装最新版本的 Git?

apt git software-installation

123
推荐指数
1
解决办法
6万
查看次数

在 Ubuntu 14.04 上升级 Git 版本

请有人告诉我这有什么问题吗?

我跑

$ sudo apt-get purge git; sudo apt-get autoremove; sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  git-man liberror-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  git* git-core*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 21.0 MB disk space will be freed.
Do you want to continue? [Y/n] …
Run Code Online (Sandbox Code Playgroud)

upgrade apt git 14.04

58
推荐指数
1
解决办法
5万
查看次数

标签 统计

apt ×2

git ×2

14.04 ×1

software-installation ×1

upgrade ×1