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?
|
I am trying to install git. I run the following command:
But receive the following error:
What should I do? |
|||
| show 2 more comments |
|
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
|
|||
|
|
|
Have you check the basics? Are you using a Debian related distro? If not you may need to use a different package manager... like YUM (nowdays Red Hat, CentOS, etc.), Portage, Entropy, RPM, etc. When using a Debian related distro: What gives you?
Is the binary really there?
Hope it helps! |
|||||||||
|
|
Check this,
you can easily install "git" in your centOS machine. |
|||
|
|
2.6.9-023stab048.6-enterprise #1 SMP– Lucy Weatherford Mar 7 '12 at 18:36CentOS release 5.2 (Final)– Lucy Weatherford Mar 7 '12 at 18:40yumif I'm not mistaken. – Lekensteyn Mar 7 '12 at 18:49