Admin-Ahead Community

Linux => Control Panels => cPanel => Topic started by: lijeshk on October 30, 2013, 07:12:28 pm

Title: How to fix error while installing GIT in Centos 6.x and cPanel
Post by: lijeshk on October 30, 2013, 07:12:28 pm

You may get the following error while installing GIT:

---
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
--> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.1-3.el6_4.1.x86_64
--> Finished Dependency Resolution
Error: Package: git-1.7.1-3.el6_4.1.x86_64 (updates)
Requires: perl-Git = 1.7.1-3.el6_4.1
Error: Package: git-1.7.1-3.el6_4.1.x86_64 (updates)
Requires: perl(Error)
Error: Package: git-1.7.1-3.el6_4.1.x86_64 (updates)
Requires: perl(Git)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
--

To fix this error, you need to run the following command:
 
---
yum install git --disableexcludes=main --skip-broken
--

This is due to cPanel configures yum to exclude perl updates to protect it’s own packages.