我读到了 Git 中的一个安全漏洞,该漏洞已在 2.2.1 版中修复。我目前在我的系统(Ubuntu 14.10)上安装了 Git 2.1.0,并尝试使用 apt 重新安装它。但是,apt 告诉我,我目前拥有最新版本。
Git 网站没有针对 Linux 的预构建版本。他们说你可以用包管理器安装它。如果不从源代码构建,我将如何安装最新版本的 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)