Last active
January 25, 2017 09:41
-
-
Save hiroharu8864/1fccc63e29454d01a1760a9a90a9a18a to your computer and use it in GitHub Desktop.
git2.11.0のRPMを作成し、インストール
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpmbuild用のvagrant環境を用意する。 | |
以下、vagrant環境にて実施。 | |
vagrant: vagrant-centos-7.2.box | |
rpmbuild環境の構築 | |
# yum groupinstall "Development tools" | |
# yum install rpmdevtools createrepo yum-utils | |
# rpmdev-setuptree | |
# cd ~/rpmbuild/SOURCES/ | |
# wget https://www.kernel.org/pub/software/scm/git/git-2.11.0.tar.gz | |
# tar zxvf git-2.11.0.tar.gz | |
SPEC情報をGITより取得する | |
# cd ~/rpmbuild/SPECS/ | |
# wget https://raw.githubusercontent.com/essentialkaos/kaos-repo/master/git.spec | |
# yum install -y zlib-devel openssl-devel curl-devel expat-devel gettext subversion-perl perl-YAML xmlto asciidoc perl-ExtUtils-MakeMaker | |
RPMをBuildする。 | |
# rpmbuild -ba ~/rpmbuild/SPECS/git.spec | |
# cd /root/rpmbuild/RPMS/x86_64 | |
git-2.11.0-0.el7.centos.x86_64.rpm | |
git-debuginfo-2.11.0-0.el7.centos.x86_64.rpm | |
git-svn-2.11.0-0.el7.centos.x86_64.rpm | |
# cd /root/rpmbuild/RPMS/noarch | |
git-all-2.11.0-0.el7.centos.noarch.rpm | |
git-email-2.11.0-0.el7.centos.noarch.rpm | |
gitweb-2.11.0-0.el7.centos.noarch.rpm | |
git-arch-2.11.0-0.el7.centos.noarch.rpm | |
git-gui-2.11.0-0.el7.centos.noarch.rpm | |
perl-Git-2.11.0-0.el7.centos.noarch.rpm | |
git-cvs-2.11.0-0.el7.centos.noarch.rpm | |
gitk-2.11.0-0.el7.centos.noarch.rpm | |
Git RPMのインストール | |
# cd /root/rpmbuild/RPMS | |
# git --version | |
# rpm -Uvh ./x86_64/git-2.11.0-0.el7.centos.x86_64.rpm ./noarch/perl-Git-2.11.0-0.el7.centos.noarch.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment