如何使用apt安装最新版本的Git?
我读到了Git中的一个安全漏洞,它已在2.2.1版中修复。 我目前在我的系统上使用Git 2.1.0(Ubuntu 14.10),并试图用apt重新安装它。 但是,apt告诉我,我目前有最新版本。
Git网站没有Linux的预建版本。 他们说你可以用包管理器安装它。 如果没有源代码构建,我将如何安装最新版本的Git?
在Ubuntu上使用git
维护者的PPA :
sudo apt-add-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git
如果您不知道PPA是什么,请首先阅读什么是PPA以及如何使用它们?
如果您收到有关未找到add-apt-repository
命令的错误,则可能需要添加python-software-properties
软件包或software-properties-common
具体取决于您的Ubuntu版本。
Ubuntu 14.04
sudo apt-get install software-properties-common
Ubuntu 13.10或更早版本
sudo apt-get install python-software-properties
这就是我在Ubuntu 12.04上将git 1.7.9.5升级到2.xxx所做的:
sudo apt-get install python-software-properties sudo apt-get install software-properties-common sudo add-apt-repository ppa:git-core/ppa -y sudo apt-get update sudo apt-get install git -y git --version
- 卸载Plasma桌面
- Apt / Synaptic需要重新安装软件包,但无法找到它的存档
- 分段故障dpkg:error handling包libc-bin(–configure)
- 由于“未满足的依赖关系”,无法安装libssl1.0.0:i386?
- 使用Windows XP ICS时,apt-get update停留在“Waiting for Headers”上
- 18.04:无法安装texlive-full
- E:在apt-get update期间执行脚本APT Update :: Post-Invoke-Success错误时出现问题
- 权限被拒绝:’/ etc / apt / sources.list.d / google-earth.list’
- apt是否有一个存储所有下载的目录?