Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: Paperguides on April 28, 2019, 12:37:00 PM

Title: Repeated Yum updates
Post by: Paperguides on April 28, 2019, 12:37:00 PM
Hi,

I keep getting the following report:

===
=== yum reports available updates:
===

ImageMagick6-libs.x86_64             6.9.10.42-1.el6.remi              remi-safe


I have run the yum update command several times and it appears to complete successfully without error.  I cannot work out what contrib uses/needs this package nor any posts here about it.

Any ideas?

Thanks
Title: Re: Repeated Yum updates
Post by: mmccarn on April 28, 2019, 01:33:23 PM
Lots of packages that either generate or manipulate images might use ImageMagick.  For example, I'm pretty sure that Gallery3, NextCloud, and Wordpress can all be configured to use ImageMagick if it is available.

You may be able to tell what package needs/wants ImageMagic using
Code: [Select]
rpm -q --whatrequires ImageMagick6-libs.x86_64

However, the apps listed above can be configured to use imagemagick without having it as a dependency for the core application.  Try searching your web app locations (ibays and maybe /opt) for the string 'imagemagick' to see what pops up:
Code: [Select]
# cd /home/e-smith/files/ibays/wordpress/html
# grep -ril imagemagick *
wp-includes/class-wp-image-editor-imagick.php

The php file my search found reminded me that ImageMagick is used by the PHP module "imagick" - so you do some searches for that too.
Title: Re: Repeated Yum updates
Post by: Paperguides on April 28, 2019, 02:14:54 PM
Thanks for the pointers.

As you indicated there are no particular packages that require it but wordpress is used on this server and a number of plugins do use it.  nextgen gallery, ml-slider, and for some reason  en_GB.po.

As it's likely I cannot simply remove it any ideas why the update doesn't 'take'?

Title: Re: Repeated Yum updates
Post by: mmccarn on April 29, 2019, 04:44:49 AM
On my system the remi-safe repo is 'disabled' by default.  To install that update I would have to use
Code: [Select]
yum enable-repo=remi-safe update ImageMagick6-libs.x86_64
Title: Re: Repeated Yum updates
Post by: Paperguides on April 29, 2019, 10:00:37 AM
I'm not sure that's the problem. Your command didn't work as below:

[root@the-shed wordpress]# yum enable-repo=remi-safe update ImageMagick6-libs.x86_64
Loaded plugins: fastestmirror, post-transaction-actions, smeserver
No such command: enable-repo=remi-safe. Please use /usr/bin/yum --help


But the normal yum command gives:

[root@the-shed wordpress]# yum update
Loaded plugins: fastestmirror, post-transaction-actions, smeserver
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: centos.mirroring.pulsant.co.uk
 * smeaddons: www.mirrorservice.org
 * smeextras: www.mirrorservice.org
 * smeos: www.mirrorservice.org
 * smeupdates: www.mirrorservice.org
 * updates: centos.mirroring.pulsant.co.uk
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick6-libs.x86_64 0:6.9.10.40-1.el6.remi will be updated
---> Package ImageMagick6-libs.x86_64 0:6.9.10.42-1.el6.remi will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch       Version                   Repository     Size
================================================================================
Updating:
 ImageMagick6-libs     x86_64     6.9.10.42-1.el6.remi      remi-safe     2.2 M

Transaction Summary
================================================================================
Upgrade       1 Package(s)

Total download size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
ImageMagick6-libs-6.9.10.42-1.el6.remi.x86_64.rpm        | 2.2 MB     00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : ImageMagick6-libs-6.9.10.42-1.el6.remi.x86_64                1/2
  Cleanup    : ImageMagick6-libs-6.9.10.40-1.el6.remi.x86_64                2/2
  Verifying  : ImageMagick6-libs-6.9.10.42-1.el6.remi.x86_64                1/2
  Verifying  : ImageMagick6-libs-6.9.10.40-1.el6.remi.x86_64                2/2

Updated:
  ImageMagick6-libs.x86_64 0:6.9.10.42-1.el6.remi

Complete!
[root@the-shed wordpress]#


I know that tomorrow morning I'll get the same email report for a required update.   Doing a reconfigure/reboot to the server makes no difference to the outcome.
Title: Re: Repeated Yum updates
Post by: TerryF on April 29, 2019, 10:37:33 AM
I'm not sure that's the problem. Your command didn't work as below:
[root@the-shed wordpress]# yum enable-repo=remi-safe update ImageMagick6-libs.x86_64

Not quite there yet note -- and removal of -

# ]# yum --enablerepo=remi-safe update ImageMagick6-libs.x86_64
Title: Re: Repeated Yum updates
Post by: Jean-Philippe Pialasse on April 30, 2019, 02:38:41 PM
Remi-safe is enabled by default.

Here we now have the proof the package was updated looking at the yum log.


If after that you still get the same update i only see a reason : Would you happen to have multiple servers with them pointing their admin emails to the same server ?

Have you tried updating twice in a row ? What happen on the second try ? 
Title: Re: Repeated Yum updates
Post by: Jean-Philippe Pialasse on April 30, 2019, 02:40:53 PM
What returns this command ?

rpm -q ImageMagick6-libs


I do not see removal of old rpm.  Looks like it is still there.  Seems like a packaging bug.
Title: Re: Repeated Yum updates
Post by: Paperguides on May 01, 2019, 02:29:56 PM
I do have multiple servers to update but this is one is the only one I usually do via a Teamviewer session to a local PC.  The rest are done on my system via VPN.

However, the message that an update was required did not return.  I really do not understand, I've done the update several times with the same result.  I ask here and it fixes itself. After 50 years of 'playing' with computers I don't think I'll ever understand how they work. :-)

Thanks for all your help and suggestions.
Title: Re: Repeated Yum updates
Post by: Paperguides on May 03, 2019, 10:26:18 AM
I spoke too soon. :-(

===
=== yum reports available updates:
===

ImageMagick6-libs.x86_64                6.9.10.43-1.el6.remi           remi-safe
php71-php-pecl-imagick.x86_64           3.4.4-1.el6.remi               remi-safe

It's getting worse.....
Title: Re: Repeated Yum updates
Post by: mmccarn on May 03, 2019, 01:25:57 PM
ImageMagick6-libs.x86_64                6.9.10.43-1.el6.remi           remi-safe

That actually *is* a new version of ImageMagic6 - your original problem was related to v6.9.10.42-1

Fingers crossed you won't have to install this new update multiple times...
Title: Re: Repeated Yum updates
Post by: Paperguides on May 03, 2019, 07:18:16 PM
I've run yum update so we'll see....

I'll let you know.  Thanks again for the help and advice.
Title: Re: Repeated Yum updates
Post by: Paperguides on May 07, 2019, 03:45:44 PM
Guess what appeared this morning....  8-)

===
=== yum reports available updates:
===

ImageMagick6-libs.x86_64             6.9.10.44-1.el6.remi              remi-safe

It would appear this program is getting more than it's fair share of updates.

Tony
Title: Re: Repeated Yum updates
Post by: ReetP on May 07, 2019, 04:03:30 PM

ImageMagick6-libs.x86_64             6.9.10.44-1.el6.remi              remi-safe

It would appear this program is getting more than it's fair share of updates.

More than likely - I believe it has had loads of issues over the years.

Bearing in mind v7 is out think yourself lucky it is still getting updates !

Be another one shortly from the looks of things:

https://gitlab.com/ImageMagick/ImageMagick6/commit/e4e064f285a04d94aa9db53751c33fa8d757121f