In this article, we will have explained the necessary steps to install ImageMagick on Rocky Linux. Before continuing with this tutorial, make sure you are logged in as a user with sudo
privileges. All the commands in this tutorial should be run as a non-root user.
ImageMagick is a free, open-source application installed as a binary distribution or as a source code. ImageMagick can create, edit, compose or convert digital images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, WebP, HEIC, SVG, PDF, DPX, EXR, and TIFF. Apart from providing a graphical interface for working with images, it also provides commands to resize an image, blur, crop, draw on, flip, join, re-sample, and much more.
Install ImageMagick on Rocky Linux 8
Step 1. First, before you start installing any package on your Rocky Linux server, we always recommend making sure that all system packages are updated.
sudo dnf update sudo dnf upgrade sudo dnf install epel-release sudo dnf config-manager --set-enabled powertools sudo dnf install make automake cmake gcc libtool-ltdl-devel
Step 2. Install ImageMagick on the Rocky Linux system.
- Install ImageMagick from the official source.
Now we clone the ImageMagick installer from GitHub:
sudo git clone https://github.com/ImageMagick/ImageMagick.git /usr/local/src/ImageMagick cd /usr/local/src/ImageMagick
Next, compile the installer using the following command:
sudo ./configure sudo ./configure --with-modules sudo make sudo make -j 6 sudo make install sudo ldconfig /usr/local/lib
verify the installation:
magick --version
- Install ImageMagick using DNF.
Installing ImageMagick on your Rocky Linux system is straightforward, Now install ImageMagick using the following command below:
sudo dnf install ImageMagick ImageMagick-devel
Verify the install by checking the build and version:
convert --version
That’s all you need to do to install ImageMagick on Rocky Linux 8. I hope you find this quick tip helpful. For further reading on ImageMagick open-source software suite for creating, editing, converting, and modifying bitmap images, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.