How To Install python-pillow-sane on CentOS 7

In this tutorial we learn how to install python-pillow-sane on CentOS 7. python-pillow-sane is Python module for using scanners

Introduction

In this tutorial we learn how to install python-pillow-sane on CentOS 7.

What is python-pillow-sane

This package contains the sane module for Python which provides access to various raster scanning devices such as flatbed scanners and digital cameras.

We can use yum or dnf to install python-pillow-sane on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-pillow-sane.

Install python-pillow-sane on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python-pillow-sane using yum by running the following command:

sudo yum -y install python-pillow-sane

Install python-pillow-sane on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python-pillow-sane using dnf by running the following command:

sudo dnf -y install python-pillow-sane

How To Uninstall python-pillow-sane on CentOS 7

To uninstall only the python-pillow-sane package we can use the following command:

sudo dnf remove python-pillow-sane

References

Summary

In this tutorial we learn how to install python-pillow-sane on CentOS 7 using yum and dnf.