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: