Forked from eddarmitage/InstallingGitUsingYum.md
Last active
August 29, 2015 14:16
Revisions
-
speedlight revised this gist
Mar 2, 2015 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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.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.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`: -
eddarmitage revised this gist
Mar 12, 2012 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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)). **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 -
eddarmitage revised this gist
Mar 12, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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 -
eddarmitage revised this gist
Mar 12, 2012 . 1 changed file with 17 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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)). 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. -
eddarmitage revised this gist
Mar 12, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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&redirect=Repositories%2FRPMForge#head-b06dd43af4eb366c28879a551701b1b5e4aefccd)). -
eddarmitage revised this gist
Mar 12, 2012 . 1 changed file with 11 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,16 @@ Installing git on CentOS 5 using yum ==================================== 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> 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 -
eddarmitage revised this gist
Mar 9, 2012 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ------------------------ -
eddarmitage created this gist
Mar 8, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ Installing git on CentOS 5 using yum ====================================