summaryrefslogtreecommitdiffstats
path: root/content/posts/git-on-rhel5.rst
blob: d46229f350cd2504a8350e47461d8c2a48fc53cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Install GIT on RHEL5 without Internet
#####################################
:date: 2014-02-18 13:37
:tags: rhel, git

I was facing the problem that i desperately needed git on one of the
development Redhat 5 systems which had no direct internet connection. As EPEL is an open
repository to retrieve all kinds of cool packages also Git is available there.
All i needed to do was to find out the dependencies, copy the packages to the
host and you are done.

You need the following packages:

- git                                 (EPEL)
    - perl-Git (dep)                  (EPEL)
        - perl-error                  (EPEL)
        - perl-termreadkey            (EPEL)
        - perl (installed in my case) (core)

Today (2014-02-18) i downloaded the following packages:

.. code-block:: bash
    
    #?/bin/sh
    # on internet-available node:
    wget 'http://mirror.bytemark.co.uk/fedora/epel/5Server/x86_64/perl-Error-0.17010-1.el5.noarch.rpm' \
         'http://mirror.bytemark.co.uk/fedora/epel/5Server/x86_64/perl-TermReadKey-2.30-4.el5.x86_64.rpm' \
         'http://mirror.bytemark.co.uk/fedora/epel/5Server/x86_64/perl-Git-1.8.2.1-1.el5.x86_64.rpm' \
         'http://mirror.bytemark.co.uk/fedora/epel/5Server/x86_64/git-1.8.2.1-1.el5.x86_64.rpm' \
         # you may need this as well.
         # http://mirror.bytemark.co.uk/centos/5.10/os/x86_64/CentOS/perl-5.8.8-41.el5.x86_64.rpm
    scp *.rpm <lab-host>:~
    ssh <lab-host>
        sudo rpm -i *.rmp

If they go 404 have a look at
http://mirror.bytemark.co.uk/fedora/epel/5Server/x86_64/ for EPEL (replace
5Server with 6Server for RHEL6) and http://mirror.bytemark.co.uk/centos/ for
core packages for RHEL.