I am trying to install git. I run the following command:
sudo apt-get install git-core git-gui git-doc
But receive the following error:
sudo: apt-get: command not found
What should I do?
Since you're using CentOS 5, the default package manager is
However, when trying to install git this way, you'll encounter the following error on CentOS 5:
This tells you that the package repositories that
This assumes you want the i386 packages. Test by running
First, download the
Next, verify and install the package:
And now we should be able to install
Are you using a Debian-related distro? If not, you may need to use a different package manager, like YUM (nowadays Red Hat, CentOS, etc.), Portage, Entropy, RPM, etc.
When using a Debian-related distro:
What does it give you?
Is the binary really there?
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?