Skip to content

Instantly share code, notes, and snippets.

@speedlight
Forked from eddarmitage/InstallingGitUsingYum.md
Last active August 29, 2015 14:16

Revisions

  1. speedlight revised this gist Mar 2, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -17,17 +17,17 @@ However, when trying to install git this way, you'll encounter the following err
    This tells you that the package repositories that `yum` knows about don't contain the required rpms (RPM Package Manager files) to install `git`. This is presumably because CentOS 5 is based on RHEL 5, which was released in 2007, before `git` was considered a mature version control system. To get around this problem, we need to add additional repositories to the list that `yum` uses (We're going to add the RPMforge repository, as per [these instructions](http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-b06dd43af4eb366c28879a551701b1b5e4aefccd)).


    **This assumes you want the i386 packages. Test by running `uname -i`. If you want the x86_64 packages, replace all occurrences of i386 with x86_64 in the following commands**
    **This assumes you want the x86_64 packages. Test by running `uname -i`. If you want the i386 packages, replace all occurrences of x86_64 with i386 in the following commands**

    First, download the `rpmforge-release` package:

    $ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
    $ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

    Next, verify and install the package:

    $ rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
    $ rpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpm
    $ rpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpm
    $ rpm -K rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
    $ rpm -i rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

    And now we should be able to install `git`:

  2. @eddarmitage eddarmitage revised this gist Mar 12, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,10 @@ However, when trying to install git this way, you'll encounter the following err

    This tells you that the package repositories that `yum` knows about don't contain the required rpms (RPM Package Manager files) to install `git`. This is presumably because CentOS 5 is based on RHEL 5, which was released in 2007, before `git` was considered a mature version control system. To get around this problem, we need to add additional repositories to the list that `yum` uses (We're going to add the RPMforge repository, as per [these instructions](http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-b06dd43af4eb366c28879a551701b1b5e4aefccd)).

    First, download the `rpmforge-release` package (This assumes you want the i386 packages. Test by running `uname -i`. If you want the x86_64 packages, replace all occurrences of i386 with x86_64 in the following commands):

    **This assumes you want the i386 packages. Test by running `uname -i`. If you want the x86_64 packages, replace all occurrences of i386 with x86_64 in the following commands**

    First, download the `rpmforge-release` package:

    $ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

  3. @eddarmitage eddarmitage revised this gist Mar 12, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ However, when trying to install git this way, you'll encounter the following err

    This tells you that the package repositories that `yum` knows about don't contain the required rpms (RPM Package Manager files) to install `git`. This is presumably because CentOS 5 is based on RHEL 5, which was released in 2007, before `git` was considered a mature version control system. To get around this problem, we need to add additional repositories to the list that `yum` uses (We're going to add the RPMforge repository, as per [these instructions](http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-b06dd43af4eb366c28879a551701b1b5e4aefccd)).

    First, download the `rpmforge-release` package (This assumes you want the i386 packages. Test by running `uname -i`. If you want the x86_64 packages, replace all instances of i386 with x86_64 in the following commands):
    First, download the `rpmforge-release` package (This assumes you want the i386 packages. Test by running `uname -i`. If you want the x86_64 packages, replace all occurrences of i386 with x86_64 in the following commands):

    $ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

  4. @eddarmitage eddarmitage revised this gist Mar 12, 2012. 1 changed file with 17 additions and 1 deletion.
    18 changes: 17 additions & 1 deletion InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,20 @@ However, when trying to install git this way, you'll encounter the following err
    No package git available.
    Nothing to do

    This tells you that the package repositories that `yum` knows about don't contain the required rpms (RPM Package Manager files) to install `git`. This is presumably because CentOS 5 is based on RHEL 5, which was released in 2007, before `git` was considered a mature version control system. To get around this problem, we need to add additional repositories to the list that `yum` uses (We're going to add the RPMforge repository, as per [these instructions](http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-b06dd43af4eb366c28879a551701b1b5e4aefccd)).
    This tells you that the package repositories that `yum` knows about don't contain the required rpms (RPM Package Manager files) to install `git`. This is presumably because CentOS 5 is based on RHEL 5, which was released in 2007, before `git` was considered a mature version control system. To get around this problem, we need to add additional repositories to the list that `yum` uses (We're going to add the RPMforge repository, as per [these instructions](http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories%2FRPMForge#head-b06dd43af4eb366c28879a551701b1b5e4aefccd)).

    First, download the `rpmforge-release` package (This assumes you want the i386 packages. Test by running `uname -i`. If you want the x86_64 packages, replace all instances of i386 with x86_64 in the following commands):

    $ wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

    Next, verify and install the package:

    $ rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
    $ rpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpm
    $ rpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpm

    And now we should be able to install `git`:

    $ sudo yum install git-gui

    `yum` will work out the dependancies, and ask you at relevant points if you want to proceed. Press <kbd>y</kbd> for Yes, and <kbd>n</kbd> or <kbd>return</kbd> for No.
  5. @eddarmitage eddarmitage revised this gist Mar 12, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -14,3 +14,4 @@ However, when trying to install git this way, you'll encounter the following err
    No package git available.
    Nothing to do

    This tells you that the package repositories that `yum` knows about don't contain the required rpms (RPM Package Manager files) to install `git`. This is presumably because CentOS 5 is based on RHEL 5, which was released in 2007, before `git` was considered a mature version control system. To get around this problem, we need to add additional repositories to the list that `yum` uses (We're going to add the RPMforge repository, as per [these instructions](http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&amp;redirect=Repositories%2FRPMForge#head-b06dd43af4eb366c28879a551701b1b5e4aefccd)).
  6. @eddarmitage eddarmitage revised this gist Mar 12, 2012. 1 changed file with 11 additions and 6 deletions.
    17 changes: 11 additions & 6 deletions InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,16 @@
    Installing git on CentOS 5 using yum
    ====================================

    Package Managers
    ----------------
    Since you're using CentOS 5, the default *package manager* is `yum`, not `apt-get`. To install a program using it, you'd normally use the following command:

    $ sudo yum install <packagename>

    Using yum
    ---------
    However, when trying to install git this way, you'll encounter the following error on CentOS 5:


    $ sudo yum install git
    Setting up Install Process
    Parsing package install arguments
    No package git available.
    Nothing to do

    Installing git using yum
    ------------------------
  7. @eddarmitage eddarmitage revised this gist Mar 9, 2012. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,11 @@
    Installing git on CentOS 5 using yum
    ====================================
    ====================================

    Package Managers
    ----------------

    Using yum
    ---------

    Installing git using yum
    ------------------------
  8. @eddarmitage eddarmitage created this gist Mar 8, 2012.
    2 changes: 2 additions & 0 deletions InstallingGitUsingYum.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    Installing git on CentOS 5 using yum
    ====================================