Cannot install 'git' utility with YUM
Loading the PetaLinux 'settings.sh' script, I get an error saying that 'git' cannot be found. But, when I try to install it with yum, the error is "No package git available"
The 'git' tool is required by PetaLinux for managing kernel source trees. However, it is not a standard tool in the RedHat or CentOS 5 distribution, and nor is it contained in that standard package repositories for RHEL/CENTOS.
The git package is available for CentOS users in the EPEL package group - see below for installation instructions.
You need to first install ssupport for the EPEL (Extra Packages for Enterprise Linux) repositories, using the following command:
$ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/$(uname -i)/epel-release-5-3.noarch.rpm
Then, you can install git using yum as follows
$ sudo yum install git
For advanced users, an alternative solution is to download and build/install git from source.