Topic: ImageMagick dependencies

Hi Remi,

I was hoping you could help trace the below though I'm not sure if it's a direct issue with your packages.  It might be from a recent update in RHEL 9.

In a blank docker container in AlmaLinux 9, when I do "yum install ImageMagick", I get 227 packages with an install size of 538 M, which seems much higher than normal.  There are some odd dependencies such as fuse, ModemManager-glib, and systemd-udev.  I can repeat the same in RockyLinux 9 and CentOS 9 Stream.

The steps I did were:

docker run -ti almalinux:9 bash
# docker run -ti rockylinux:9 bash
# docker run -ti quay.io/centos/centos:stream9 bash

Then in the container:

yum -y update
yum -y install yum-utils
yum -y install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
yum-config-manager --enable remi
yum install ImageMagick

-------

AlmaLinux 9:
Install  227 Packages

Total download size: 146 M
Installed size: 538 M

-------

RockLinux 9:
Install  238 Packages

Total download size: 151 M
Installed size: 556 M

-------

CentOS 9 Stream:
Install  248 Packages

Total download size: 188 M
Installed size: 681 M


Thanks for your help.

Ryan

Re: ImageMagick dependencies

> which seems much higher than normal.

What do you think should be normal?

BTW IM has tons of dependencies related to the graphical interface and related to tons of coders (supported formats)

I haven't noticed any recent changes, but disabling weak (optional) dependencies may help (683M => 137M)

# dnf install ImageMagick
...
...
Transaction Summary
============================================================================================================================================================================================================================
Install  250 Packages

Total download size: 188 M
Installed size: 683 M
Is this ok [y/N]: : n
Operation aborted.

# dnf install ImageMagick --setopt=install_weak_deps=False
...
...
Transaction Summary
============================================================================================================================================================================================================================
Install  87 Packages

Total download size: 40 M
Installed size: 137 M
Is this ok [y/N]: 
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: ImageMagick dependencies

Notice: I also recommend to use ImageMagick7 instead of ImageMagick (v6) when possible.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: ImageMagick dependencies

Thanks, 2 other things I noticed:

1) After installing ImageMagick7, if I try to remove one of the extra dependencies, I still can:

dnf remove fuse

The above runs successfully.  If fuse was a dependency, should I be prevented from removing it?

2) I can't remove ImageMagick7:

# dnf remove ImageMagick7
Error:
 Problem: The operation would result in removing the following protected packages: systemd-udev
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Re: ImageMagick dependencies

Sorry, no idea about systemd-udev issue.

BTW, it works using

# dnf remove ImageMagick7 --noautoremove

or

# dnf remove ImageMagick7 --exclude systemd\*
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: ImageMagick dependencies

So, in short: this is rather a dnf issue

Dependency tree pull a protected package (systemd-udev) that cannot be removed later.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi