Skip to content

Instantly share code, notes, and snippets.

@speedlight
Forked from eddarmitage/InstallingGitUsingYum.md
Last active August 29, 2015 14:16
Show Gist options
  • Save speedlight/47191128536a9b51d26e to your computer and use it in GitHub Desktop.
Save speedlight/47191128536a9b51d26e to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment