![]() | 1 | initial version |
I see two other way to do it
__1) the ugly__
CHROOT=/home/chroot
yum install git --releasever=21 --disablerepo "rpmfusion*" --installroot=$CHROOT --nogpgcheck
alias git=$CHROOT/usr/bin/git
git --version
350Mo just for git is a little bit an overkill.
or
__2) the bad__
#grab it from koji
wget https://kojipkgs.fedoraproject.org//packages/git/2.0.4/1.fc21/src/git-2.0.4-1.fc21.src.rpm
yum-builddep ./git-2.0.4-1.fc21.src.rpm
rpmbuild --rebuild git-2.0.4-1.fc21.src.rpm
yum localinstall ~/rpmbuild/RPMS/x86_64/git-2.0.4-1.fc20.x86_64.rpm ~/rpmbuild/RPMS/noarch/perl-Git-2.0.4-1.fc20.noarch.rpm
it's bad because it make the system unstable like the previous answer.
maybe it's just easier to compile it from source. yum-builddep can help in this case.
![]() | 2 | No.2 Revision |
I see two other way to do it
__1) 1) the ugly__ugly
CHROOT=/home/chroot
yum install git --releasever=21 --disablerepo "rpmfusion*" --installroot=$CHROOT --nogpgcheck
alias git=$CHROOT/usr/bin/git
git --version
350Mo just for git is a little bit an overkill.
or
__2) 2) the bad__bad
#grab it from koji
wget https://kojipkgs.fedoraproject.org//packages/git/2.0.4/1.fc21/src/git-2.0.4-1.fc21.src.rpm
yum-builddep ./git-2.0.4-1.fc21.src.rpm
rpmbuild --rebuild git-2.0.4-1.fc21.src.rpm
yum localinstall ~/rpmbuild/RPMS/x86_64/git-2.0.4-1.fc20.x86_64.rpm ~/rpmbuild/RPMS/noarch/perl-Git-2.0.4-1.fc20.noarch.rpm
it's bad because it make the system unstable like the previous answer.
maybe it's just easier to compile it from source. yum-builddep can help in this case.
![]() | 3 | No.3 Revision |
I see two other way to do it
1) the ugly
CHROOT=/home/chroot
yum install git --releasever=21 --disablerepo "rpmfusion*" --installroot=$CHROOT --nogpgcheck
alias git=$CHROOT/usr/bin/git
git --version
350Mo just for git is a little bit an overkill.
or
2) the bad
#grab it from koji
wget https://kojipkgs.fedoraproject.org//packages/git/2.0.4/1.fc21/src/git-2.0.4-1.fc21.src.rpm
yum-builddep ./git-2.0.4-1.fc21.src.rpm
rpmbuild --rebuild git-2.0.4-1.fc21.src.rpm
yum localinstall ~/rpmbuild/RPMS/x86_64/git-2.0.4-1.fc20.x86_64.rpm ~/rpmbuild/RPMS/noarch/perl-Git-2.0.4-1.fc20.noarch.rpm
it's bad because it make the system unstable like the previous answer.
maybe it's just easier to compile it from source. yum-builddep "yum-builddep git" can help in this case.