Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
wkhtmltox i686 1:0.12.1.3-1~centos6 /wkhtmltox-0.12.1.3.el6.i386 107 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 107 M
Installed size: 107 M
Downloading Packages:
Running rpm_check_debug
RPM needs to be updated
ERROR You need to update rpm to handle:
rpmlib(TildeInVersions) <= 4.10.0-1 is needed by wkhtmltox-1:0.12.1.3-1~centos6.i686
You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2018-07-16-13-27MMbXjG.yumtx
[root@nagiosxi nagiosxi]#
It looks like because CentOS is < 6.4 it does not support tilde in the rpm versions. I would suggest commenting out this section around line 1231 in the upgrade script:
[root@nagiosxi nagiosxi]# ./upgrade
Archive: sourceguardian/ixed4.lin.x86-32.zip
inflating: /usr/lib/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...
OLD VERSION: 5500
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.siena.edu
* extras: mirrors.advancedhosters.com
* updates: centos.mirror.constant.com
Setting up Update Process
No Packages marked for Update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.siena.edu
* extras: mirrors.advancedhosters.com
* updates: centos.mirror.constant.com
Setting up Install Process
Package perl-Test-Simple-0.92-144.el6.i686 already installed and latest version
Package perl-Class-Accessor-0.31-6.1.el6.noarch already installed and latest version
Package perl-Params-Validate-0.92-3.el6.i686 already installed and latest version
Package perl-Config-Tiny-2.12-7.1.el6.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-6.el6.noarch already installed and latest version
Package perl-Number-Format-1.73-3.el6.noarch already installed and latest version
Nothing to do
./upgrade: line 416: syntax error near unexpected token `)'
Did you comment the section of the code around line 1231 as suggested by jomann or around line 416? Also, did you forget to comment out the last ")"? The commented out section should look like this: