Ubuntu – Cannot uninstall imagemagick

aptpackage-managementuninstall

I just want to uninstall imagemagick from Ubuntu 16.04.
When I run sudo apt remove imagemagick I get this output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-jsmath gnuplot-data gnuplot-tex gnuplot-x11 liblua5.1-0 maxima maxima-doc maxima-share
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
foomatic-filters libpaps0 paps
The following packages will be REMOVED:
bluez-cups cups cups-filters hplip imagemagick indicator-printers printer-driver-gutenprint printer-driver-hpcups printer-driver-postscript-hp
printer-driver-pxljr printer-driver-splix wxmaxima
The following NEW packages will be installed:
foomatic-filters libpaps0 paps
0 upgraded, 3 newly installed, 12 to remove and 0 not upgraded.
Need to get 111 kB of archives.
After this operation, 14.2 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Why it want to uninstall cups and wxmaxima? I thought imagemagick is simple graphics editor but it has strange dependencies. Can I remove imagemagick without removing wxmaxima, cups, etc.?

Best Answer

cups depends on cups-filters and cups-filters depends on imagemagick. The only way you can remove imagemagick is if you install graphicsmagick-imagemagick-compat (which will involve installing graphicsmagick). wxmaxima also depends on imagemagick. You can try: How to fake a package version installed?, though who knows what might break if you do that.

Related Question