How To Install ImageMagick on CentOS 8
Introduction
In this tutorial we learn how to install ImageMagick
on CentOS 8.
What is ImageMagick
ImageMagick is an image display and manipulation tool for the X Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF, and Photo CD image formats. It can resize, rotate, sharpen, color reduce, or add special effects to an image, and when finished you can either save the completed work in the original format or a different one. ImageMagick also includes command line programs for creating animated or transparent .gifs, creating composite images, creating thumbnail images, and more. ImageMagick is one of your choices if you need a program to manipulate and display images. If you want to develop your own applications which use ImageMagick code or APIs, you need to install ImageMagick-devel as well.
We can use yum
or dnf
to install ImageMagick
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ImageMagick.
Install ImageMagick on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ImageMagick
using dnf
by running the following command:
sudo dnf -y install ImageMagick
Install ImageMagick on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ImageMagick
using yum
by running the following command:
sudo yum -y install ImageMagick
How To Uninstall ImageMagick on CentOS 8
To uninstall only the ImageMagick
package we can use the following command:
sudo dnf remove ImageMagick
ImageMagick Package Contents on CentOS 8
/usr/bin/animate
/usr/bin/compare
/usr/bin/composite
/usr/bin/conjure
/usr/bin/convert
/usr/bin/display
/usr/bin/identify
/usr/bin/import
/usr/bin/mogrify
/usr/bin/montage
/usr/bin/stream
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/5af035d64b959d7ffd99d94dcc6f41d001ac22
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/b41883cad0d3e4cb9c6abd37f903d62459b6f1
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/257c60ea4cc65f4587a62ec66f5abb27e69062
/usr/lib/.build-id/75
/usr/lib/.build-id/75/9a6d5f322818ca3d1b4063d31bfed2025ab205
/usr/lib/.build-id/79
/usr/lib/.build-id/79/b7fdba02c1f40c4a8bde9ba9d5a2ae3176d69d
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/f448a31c9c0373daf7bea24e8f2cbc77b0caf9
/usr/lib/.build-id/9e/f886b3c08ee0e7342d5fc543c36487780df599
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/be295b16eafebe0f9ccb49247e692ccaaccee3
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/b5fdb0f961bfd520b0b94a88385eace78a9bb2
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/34a8b4be0c3019b6e5e79ea1daac7ee5612bcc
/usr/lib/.build-id/d7/8c7f924ff648b583213c21c157af7ccfaa491c
/usr/share/doc/ImageMagick
/usr/share/doc/ImageMagick/AUTHORS.txt
/usr/share/doc/ImageMagick/ChangeLog
/usr/share/doc/ImageMagick/LICENSE
/usr/share/doc/ImageMagick/NEWS.txt
/usr/share/doc/ImageMagick/NOTICE
/usr/share/doc/ImageMagick/Platforms.txt
/usr/share/doc/ImageMagick/README.txt
/usr/share/man/man1/ImageMagick.1.gz
/usr/share/man/man1/animate.1.gz
/usr/share/man/man1/compare.1.gz
/usr/share/man/man1/composite.1.gz
/usr/share/man/man1/conjure.1.gz
/usr/share/man/man1/convert.1.gz
/usr/share/man/man1/display.1.gz
/usr/share/man/man1/identify.1.gz
/usr/share/man/man1/import.1.gz
/usr/share/man/man1/mogrify.1.gz
/usr/share/man/man1/montage.1.gz
/usr/share/man/man1/stream.1.gz
References
Summary
In this tutorial we learn how to install ImageMagick
on CentOS 8 using yum and dnf.