Leo108's Blog
  • 首页
  • 版权声明
  • 联系我

yum

A collection of 1 post

centos

将git源码打包成rpm安装包(centos)

centos6系统里通过yum安装的git版本只有1.7.1,好多新特性都没有。而使用编译安装的话,每台服务器都要编译一遍太麻烦,以后更新起来也麻烦,所以决定自己打一个rpm包。 首先需要安装rpm-build yum install -y rpm-build 然后创建一个rpmbuild目录: cd ~ && rpmdev-setuptree 到https://github.com/git/git/releases下载git源码包,一定要下载.tar.gz版本的,rpmbuild需要这种格式。 先下载到home目录下 wget https://github.com/

  • Leo Chen
    Leo Chen
2 min read
Leo108's Blog © 2019
Latest Posts Ghost