Symptoms
The script /usr/local/cpanel/scripts/rpmup may fail during a cPanel update with the following error:
[/usr/local/cpanel/scripts/rpmup] Error: Package: perl-Git-1.7.1-9.el6_9.noarch (@cloudlinux-x86_64-server-6)
[/usr/local/cpanel/scripts/rpmup] You could try using --skip-broken to work around the problem
[/usr/local/cpanel/scripts/rpmup] Error: Package: git-1.7.1-10.el6_10.x86_64 (cloudlinux-x86_64-server-6)
Description
This error occurs because a new version of perl-Git is required. The perl-Git package is typically outdated because updates to perl* are excluded in yum's configuration at /etc/yum.conf.
For example, you can check with the following command.
[root@server ~]# grep 'exclude' /etc/yum.conf
exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* nsd* p0f perl* php* proftpd* pure-ftpd* spamassassin* squirrelmail*
Workaround
To resolve this, you can remove perl* from the exclude= line in the /etc/yum.conf. If you do not wish to remove the exclusion, you can instead disable it for a single update transaction for this package using the argument --disableexcludes.
yum --disableexcludes main update perl-Git
Please note that we recommend you do not exclude Perl updates in yum.
Comments
0 comments
Article is closed for comments.