GIT-Linux(CentOS7)系统安装Git
GIT-Linux(CentOS7)系统安装Git
未成功
查看是否已安装了Git
发现Git版本已存在,说明已安装了Git
[root@localhost ~]# rpm -qa|grep git
lockdev-1.0.-0.13.20111007git.el7.x86_64
hypervvssd--0.34.20180415git.el7.x86_64
hyperv-daemons-license--0.34.20180415git.el7.noarch
libglvnd-gles-1.0.-0.8.git5baa1e5.el7.x86_64
taglib-1.8-.20130218git.el7.x86_64
lm_sensors-libs-3.4.-.20160601gitf9185e5.el7.x86_64
crontabs-1.11-.20121102git.el7.noarch
hypervfcopyd--0.34.20180415git.el7.x86_64
libglvnd-1.0.-0.8.git5baa1e5.el7.x86_64
lldpad-1.0.-.git036e314.el7.x86_64
libglvnd-glx-1.0.-0.8.git5baa1e5.el7.x86_64
gitlab-ce-10.0.-ce..el7.x86_64
hyperv-daemons--0.34.20180415git.el7.x86_64
numad-0.5-.20150602git.el7.x86_64
libglvnd-egl-1.0.-0.8.git5baa1e5.el7.x86_64
xdg-utils-1.1.-0.17.20120809git.el7.noarch
net-tools-2.0-0.25.20131004git.el7.x86_64
hypervkvpd--0.34.20180415git.el7.x86_64
ipxe-roms-qemu--.git133f4c.el7.noarch
git-1.8.3.1-20.el7.x86_64
linux-firmware--.gitddde598.el7.noarch
[root@localhost ~]#
[root@localhost ~]#
查看jenkins本机的git版本
[root@localhost ~]# git --version
git version 1.8.3.1
[root@localhost ~]#
卸载本机低版本的git,自行安装更高版本的git
[root@localhost ~]# yum remove -y git //或者使用"rpm -e --nodeps git"命令进行卸载
[root@localhost ~]# git --version
-bash: /usr/bin/git: No such file or directory
接着进行git版本升级操作:下载并安装高版本的git,下载地址:https://mirrors.edge.kernel.org/pub/software/scm/git/
[root@localhost ~]# yum -y install libcurl-devel expat-devel curl-devel gettext-devel openssl-devel zlib-devel
[root@localhost ~]# yum -y install gcc perl-ExtUtils-MakeMaker
[root@localhost ~]# cd /usr/local/src/
[root@localhost src]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.24.0.tar.gz
[root@localhost src]# tar -zvxf git-2.24.0.tar.gz
[root@localhost src]# cd git-2.24.0
[root@localhost git-2.24.0]# make prefix=/usr/local/git all
[root@localhost git-2.24.0]# make prefix=/usr/local/git install
添加git到环境变量
[root@localhost git-2.24.]# echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
[root@localhost git-2.24.]# source /etc/bashrc
[root@localhost git-2.24.]#
查看jenkins本机的git版本(未成功)
[root@localhost ~]# git --version
git version 1.8.3.1
[root@localhost ~]#
参考:https://www.cnblogs.com/kevingrace/p/5954042.html
GIT-Linux(CentOS7)系统安装Git的更多相关文章
- linux centos7 安装git
1.下载git wget https://github.com/git/git/archive/v2.14.1.zip 2.安装依赖 yum -y install zlib-devel openssl ...
- Linux centos7安装git
1.下载git wget https://github.com/git/git/archive/v2.14.1.zip 2.安装依赖 yum -y install zlib-devel openssl ...
- centos6 和centos7 安装git 的区别
centos6 和centos7 安装git 的区别 centos6安装git yum install curl-devel expat-devel gettext-devel openssl-dev ...
- 【Linux部署 · GIT】在linux系统安装git和配置实现SSH
领导给了一个不开放ftp的测试库,让我部署项目.拿到一个全新的环境,真是个练手的好机会. 该操作系统为:CentOs release 6.5(Final) 由于不开放ftp,所以上传下载代码是非常麻烦 ...
- 在linux中安装git,并将代码发布到github
楼主Git小白,今天刚刚学习了git,虽然在工作中也许用不到,但是在学习的时候肯定会用到的,毕竟一个程序员首先就要整理自己的知识点,将美丽的代码分享与大家. 楼主是将Git安装在阿里云的centos7 ...
- CentOS 7.4 系统安装 git
CentOS 7.4 系统安装 git 一.使用 yum 安装 1.查看系统是否已经安装 git [root@localhost ~]# git --version 2.yum 安装 git [roo ...
- CentOS7搭建git服务器
在CentOS7上搭建git服务器, 1.在Linux上安装git yum install -y git 验证是否安装成功,出现版本号即成功 git --version 2.创建版本库和用户 创建用户 ...
- 【Git】2、Linux快速安装Git环境 & oh-my-zsh
Linux快速安装Git环境 文章目录 Linux快速安装Git环境 1.Linux安装Git 2.安装zsh 3.安装oh-my-zsh 3.1.安装oh-my-zsh 3.2. 测试验证 4.小结 ...
- ***Linux下使用git命令及github项目
在linux下搭建git环境1.创建Github账号,https://github.com2.Linux创建SSH密钥: ssh-keygen ##一直默认就可以了 3.将公钥加入到Github账户 ...
随机推荐
- flask-Bootstrap Jinja2 原生 模板 和 jumpserver 模板
#模板 {% block doc -%} <!DOCTYPE html> <html{% block html_attribs %}{% endblock html_attribs ...
- python+ selenium + webdriver的环境准备
web自动化安装 1.安装最新的selenium pip install -U selenium 2.安装chrom浏览器和chromdriver的下载 http://chromedriver.sto ...
- 深入理解JVM Note
第2章 Java内存区域与内存溢出异常 运行时数据区域 在虚拟机有栈.堆和方法区. 线程共享的:堆.方法区 不共享的:栈.程序计数器(代码执行的行号) 程序计数器(Program Counter Re ...
- 7.9 规划Varnish缓存
./varnishlog -i VCL_LOG
- 1 初识JVM
- 8 Jvm堆分析
备注:直接内存分配,无法触发GC动作 备注:with outgoing reference (当前选中对象引用的对象),with incoming references(引用当前对象的对象)
- setTimeout的异步
http://www.cnblogs.com/littledu/articles/2607211.html http://www.cnblogs.com/rubylouvre/archive/2009 ...
- Linq----------if使用
static void Main(string[] args) { "; "; var processid = "c8b79051249940acbeca5dd951d2 ...
- Hive 中的 order by, sort by, distribute by 与 cluster by
Order By order by 会对输入做全排序, 因此只有一个Reducer(多个Reducer无法保证全局有序), 然而只有一个Reducer, 会导致当输入规模较大时, 消耗较长的计算时间. ...
- 小程序中的web-view与h5网页之间的交互
官方文档:https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html web-view 基础库 1.6.4 开始支 ...