Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to install git on a CentOS 5.6 64-bit system, but I do not have an internet connection, so I can't simply download it through yum. Also, I do not have gcc installed, so I cannot build it from source, unless gcc can be installed without a connection as well.

I have searched for an RPM that I can download and transfer via flash drive, but I haven't been able to find one. If anyone has any suggestions, it would be much appreciated.

EDIT

As per qweet's instructions, I downloaded the rpms and attempted to install them, but got the errors below:

$ sudo rpm -i perl-5.8.8-32.el5_6.3.x86_64.rpm

warning: perl-5.8.8-32.el5_6.3.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
    file /usr/bin/a2p from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    file /usr/bin/perl from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    file /usr/bin/perl5.8.8 from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    file /usr/lib/perl5/5.8.8/CGI.pm from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    file /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/config.h from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    file /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    file /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/sperl.o from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    file /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Config_heavy.pl from install of perl-5.8.8-32.el5_6.3.x86_64 conflicts with file from package perl-5.8.8-32.el5_5.2.x86_64
    #...
    #There are a bunch more files, but a 30k character limit on these posts.  All the files say the same thing.

$ sudo rpm -i perl-Git-1.7.4.1-1.el5.x86_64.rpm

warning: perl-Git-1.7.4.1-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
error: Failed dependencies:
    git = 1.7.4.1-1.el5 is needed by perl-Git-1.7.4.1-1.el5.x86_64
    perl(Error) is needed by perl-Git-1.7.4.1-1.el5.x86_64

$ sudo rpm -i git-1.7.4.1-1.el5.x86_64.rpm

warning: git-1.7.4.1-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
error: Failed dependencies:
    perl(Error) is needed by git-1.7.4.1-1.el5.x86_64
    perl(Git) is needed by git-1.7.4.1-1.el5.x86_64
    perl-Git = 1.7.4.1-1.el5 is needed by git-1.7.4.1-1.el5.x86_64
share|improve this question
add comment

3 Answers

Well, since Git is part of the EPEL repository, your only hope is to go and download it through Yum, or by traversing the repos.

Luckily for you...

x86_64 /cent5

git.x86_64.rpm

perl_git.x86_64.rpm (dep)

perl.x86_64 (dep)

i386 /cent5

git.i386.rpm

perl_git.i386.rpm (dep)

perl.i386 (dep)

x86_64 /cent6

git.x86_64.rpm

perl_git.x86_64.rpm (dep)

perl.x86_64 (dep)

i386 /cent6

git.i386.rpm

perl_git.i386.rpm (dep)

perl.i386

Install perl_git first, then install git. You can do this either through Yum or by RPM. If you need Perl, just comment and I'll get an RPM for you.

share|improve this answer
    
I do believe that I need perl too. –  ewok Feb 28 '12 at 18:20
    
edited with Perl RPMs –  qweet Feb 28 '12 at 18:28
    
I updated the question with the errors I got when attempting to install. It looks like perl is already installed, and that git requires perl-git and perl-git requires git –  ewok Feb 28 '12 at 18:50
add comment

You can download the source for GIT here: http://git-core.googlecode.com/files/git-1.7.9.tar.gz

Then:

tar xvzf git-1.7.9.tar.gz
cd git-1.7.9
./configure
make
make install
cd
mkdir git-test
cd git-test
git init

Should a success message after this

share|improve this answer
    
As I stated, I do not have gcc installed. the git source is c code, so without gcc, there is no way to compile it. –  ewok Feb 28 '12 at 17:05
    
Ahh missed that sorry, installing gcc from source would be a nightmare without doing it through YUM do to all the dependencies it requires. –  xXPhenom22Xx Feb 28 '12 at 17:09
    
Your better off getting the machine on the net somehow to install the "Developer Tools" which has nearly 100 packages your going to need including GCC --- yum -y groupinstall "development tools" –  xXPhenom22Xx Feb 28 '12 at 17:50
    
Because of the nature of the system, placing it on the network is not an option. I need to find a way to get git on the system without a network connection –  ewok Feb 28 '12 at 18:20
add comment

you try to install each of these rpms separately and you must intall all of these rpms in one line just like this

rpm -i perl-Git-1.7.3.4-1.el5.rf.i386.rpm perl-Error-0.17010-1.el5.noarch.rpm git-1.7.3.4-1.el5.rf.i386.rpm
share|improve this answer
    
this does not solve the problem listed above. I still get the same dependency errors. –  ewok Mar 7 '12 at 16:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.