How To Install ruby-mini-magick on Ubuntu 20.04

In this tutorial we learn how to install ruby-mini-magick on Ubuntu 20.04. ruby-mini-magick is wrapper for ImageMagick with a small memory footprint

Introduction

In this tutorial we learn how to install ruby-mini-magick on Ubuntu 20.04.

What is ruby-mini-magick

ruby-mini-magick is:

MiniMagick is a Ruby library providing a wrapper around ImageMagick or GraphicsMagick, allowing manipulation of images with minimal use of memory. MiniMagick gives access to all the commandline options provided by ImageMagick. Ruby-Versions: all

There are three methods to install ruby-mini-magick on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-mini-magick Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ruby-mini-magick using apt-get by running the following command:

sudo apt-get -y install ruby-mini-magick

Install ruby-mini-magick Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-mini-magick using apt by running the following command:

sudo apt -y install ruby-mini-magick

Install ruby-mini-magick Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-mini-magick using aptitude by running the following command:

sudo aptitude -y install ruby-mini-magick

How To Uninstall ruby-mini-magick on Ubuntu 20.04

To uninstall only the ruby-mini-magick package we can use the following command:

sudo apt-get remove ruby-mini-magick

Uninstall ruby-mini-magick And Its Dependencies

To uninstall ruby-mini-magick and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove ruby-mini-magick

Remove ruby-mini-magick Configurations and Data

To remove ruby-mini-magick configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge ruby-mini-magick

Remove ruby-mini-magick configuration, data, and all of its dependencies

We can use the following command to remove ruby-mini-magick configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-mini-magick

References

Summary

In this tutorial we learn how to install ruby-mini-magick package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.