Koozali.org: home of the SME Server

Repeated Yum updates

Offline Paperguides

  • ***
  • 118
  • +0/-0
Repeated Yum updates
« 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
...

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Repeated Yum updates
« Reply #1 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.

Offline Paperguides

  • ***
  • 118
  • +0/-0
Re: Repeated Yum updates
« Reply #2 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'?

...

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Repeated Yum updates
« Reply #3 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

Offline Paperguides

  • ***
  • 118
  • +0/-0
Re: Repeated Yum updates
« Reply #4 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.
...

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: Repeated Yum updates
« Reply #5 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
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Repeated Yum updates
« Reply #6 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 ? 

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Repeated Yum updates
« Reply #7 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.

Offline Paperguides

  • ***
  • 118
  • +0/-0
Re: Repeated Yum updates
« Reply #8 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.
...

Offline Paperguides

  • ***
  • 118
  • +0/-0
Re: Repeated Yum updates
« Reply #9 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.....
...

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Repeated Yum updates
« Reply #10 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...

Offline Paperguides

  • ***
  • 118
  • +0/-0
Re: Repeated Yum updates
« Reply #11 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.
...

Offline Paperguides

  • ***
  • 118
  • +0/-0
Re: Repeated Yum updates
« Reply #12 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
...

Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: Repeated Yum updates
« Reply #13 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

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation