April 29, 2025 - 17:49
cPanel Update Git Dependency Solution Image
cPanel Problems

cPanel Update Git Dependency Solution

Comments

Hello everyone. I’m going to talk about an issue that I’ve encountered before. Usually, I’ve solved it by removing the rpm package, but this time I fixed it by installing instead of removing. On one of the servers with cPanel installed, I ran 'yum update' and got the following error that blocked the process.

--> Finished Dependency Resolution
Error: Package: git-1.7.1-9.el6_9.x86_64 (@base)
Requires: perl-Git = 1.7.1-9.el6_9
Error: Package: git-1.7.1-9.el6_9.x86_64 (@base)
Requires: perl(Git)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

After seeing this error, I thought I could simply fix the issue by removing the git package, so I ran 'rpm -e git'. But I received a message saying that the git package was not installed. Then I ran 'rpm -qa | grep git' and confirmed there was no installed git package.

At that point, I was wondering why this error popped up in the middle of the night, so I started searching through the cPanel forums. They used similar commands. After struggling a bit, I finally found a working solution. Here are the commands you need to run:

yum install git --disableexcludes=main --skip-broken
yum clean all
yum update
/scripts/upcp --force

Of course, I tried several other commands in between, but this solution is what worked. I tested it on another server and it worked perfectly, so I’m sharing it with you fresh and hot.

Good luck, everyone!

Related Articles

Comments ()

No comments yet. Be the first to comment!

Leave a Comment