Ways to Uninstall or Install imagemagick Ubuntu 22.04

Updated: August 28, 2022

ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. All manipulations can be achieved through shell commands as well as through an X11 graphical interface (display). I will show you how to install imagemagick on Ubuntu 22.04 in this guide.

Prerequisites

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install imagemagick on Ubuntu 22.04

Install imagemagick Ubuntu 22.04

imagemagick is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install imagemagick using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get imagemagick on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install imagemagick Ubuntu by executing this command in the terminal.

sudo apt-get -y install imagemagick

Install imagemagick using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt -y install aptitude

After installing, you can now install imagemagick, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. You can now install imagemagick Ubuntu by executing this command in the terminal.

sudo aptitude -y install imagemagick

Uninstall imagemagick on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a imagemagick, can be easily uninstalled by anyone.

You can uninstall imagemagick on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove imagemagick

To uninstall imagemagick and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge imagemagick

Ending

In this tutorial, I showed you ways to install imagemagick on Ubuntu 22.04 and some ways to uninstall imagemagick too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.