How To Install python-dtopt.noarch on Amazon Linux 2

In this tutorial we learn how to install python-dtopt.noarch in Amazon Linux 2. python-dtopt.noarch is Add options to doctest examples while they are running

Introduction

In this tutorial we learn how to install python-dtopt.noarch on Amazon Linux 2.

What is python-dtopt.noarch

dtopts adds options to doctest examples while they are running. When using the doctest module it is often convenient to use the ELLIPSIS option, which allows you to use … as a wildcard. But you either have to setup the test runner to use this option, or you must put #doctest feature. dtopt lets you enable this option globally from within a doctest, by doing

We can use yum to install python-dtopt.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-dtopt.noarch.

Install python-dtopt.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-dtopt.noarch using yum by running the following command:

sudo yum -y install python-dtopt.noarch

How To Uninstall python-dtopt.noarch on Amazon Linux 2

To uninstall only the python-dtopt.noarch package we can use the following command:

sudo yum remove python-dtopt.noarch

python-dtopt.noarch Package Contents on Amazon Linux 2

/usr/lib/python2.7/site-packages/dtopt
/usr/lib/python2.7/site-packages/dtopt-0.1-py2.7.egg-info
/usr/lib/python2.7/site-packages/dtopt-0.1-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/dtopt-0.1-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/dtopt-0.1-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/dtopt-0.1-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/dtopt-0.1-py2.7.egg-info/zip-safe
/usr/lib/python2.7/site-packages/dtopt/COMPARE.py
/usr/lib/python2.7/site-packages/dtopt/COMPARE.pyc
/usr/lib/python2.7/site-packages/dtopt/COMPARE.pyo
/usr/lib/python2.7/site-packages/dtopt/ELLIPSIS.py
/usr/lib/python2.7/site-packages/dtopt/ELLIPSIS.pyc
/usr/lib/python2.7/site-packages/dtopt/ELLIPSIS.pyo
/usr/lib/python2.7/site-packages/dtopt/NORMALIZE_WHITESPACE.py
/usr/lib/python2.7/site-packages/dtopt/NORMALIZE_WHITESPACE.pyc
/usr/lib/python2.7/site-packages/dtopt/NORMALIZE_WHITESPACE.pyo
/usr/lib/python2.7/site-packages/dtopt/__init__.py
/usr/lib/python2.7/site-packages/dtopt/__init__.pyc
/usr/lib/python2.7/site-packages/dtopt/__init__.pyo
/usr/lib/python2.7/site-packages/dtopt/tests.py
/usr/lib/python2.7/site-packages/dtopt/tests.pyc
/usr/lib/python2.7/site-packages/dtopt/tests.pyo
/usr/share/doc/python-dtopt-0.1
/usr/share/doc/python-dtopt-0.1/index.txt
/usr/share/doc/python-dtopt-0.1/license.txt

References

Summary

In this tutorial we learn how to install python-dtopt.noarch on Amazon Linux 2 using yum.