Skip to content

Instantly share code, notes, and snippets.

@johnrc
Created April 11, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnrc/d91138ec4220cc06115d4b1e2495ef83 to your computer and use it in GitHub Desktop.
Save johnrc/d91138ec4220cc06115d4b1e2495ef83 to your computer and use it in GitHub Desktop.
Steps to create the Git RPMs

Git RPMs

Here are the steps to compile and build the Git RPMs using the git.spec provided by the project:

wget http://kernel.org/pub/software/scm/git/git-2.8.1.tar.gz -P ~/rpmbuild/SOURCES
tar xf ~/rpmbuild/SOURCES/git-2.8.1.tar.gz
cp git-2.8.1/git.spec ~/rpmbuild/SPECS
rm -fr git-2.8.1
# install all dependencies (e.g. yum install <packages> -y)
rpmbuild -ba ~/rpmbuild/SPECS/git.spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment