How To Install python-magic.noarch on Amazon Linux 2
In this tutorial we learn how to install python-magic.noarch in Amazon Linux 2. python-magic.noarch is Python bindings for the libmagic API
Introduction
In this tutorial we learn how to install python-magic.noarch
on Amazon Linux 2.
What is python-magic.noarch
This package contains the Python bindings to allow access to the libmagic API. The libmagic library is also used by the familiar file(1) command.
We can use yum
to install python-magic.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-magic.noarch.
Install python-magic.noarch on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python-magic.noarch
using yum
by running the following command:
sudo yum -y install python-magic.noarch
How To Uninstall python-magic.noarch on Amazon Linux 2
To uninstall only the python-magic.noarch
package we can use the following command:
sudo yum remove python-magic.noarch
python-magic.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/Magic_file_extensions-0.2-py2.7.egg-info
/usr/lib/python2.7/site-packages/magic.py
/usr/lib/python2.7/site-packages/magic.pyc
/usr/lib/python2.7/site-packages/magic.pyo
/usr/share/doc/python-magic-5.11
/usr/share/doc/python-magic-5.11/COPYING
/usr/share/doc/python-magic-5.11/README
/usr/share/doc/python-magic-5.11/example.py
References
Summary
In this tutorial we learn how to install python-magic.noarch
on Amazon Linux 2 using yum.