How To Install python2-isodate on Rocky Linux 8

In this tutorial we learn how to install python2-isodate on Rocky Linux 8. python2-isodate is An ISO 8601 date/time/duration parser and formatter

Introduction

In this tutorial we learn how to install python2-isodate on Rocky Linux 8.

What is python2-isodate

This module implements ISO 8601 date, time and duration parsing. The implementation follows ISO8601 date/time representations mentioned in the standard. If something is not mentioned there, then it is treated as non existent, and not as an allowed option. For instance, ISO8601 by this module to support 2 digit years. (while it may still be valid as ISO date, because it is not explicitly forbidden.) Another example is, when no time zone information is given for a time, then it should be interpreted as local time, and not UTC. As this module maps ISO 8601 dates/times to standard Python data types, like date, time, datetime and timedelta, it is not possible to convert all possible ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by the Python date and datetime classes. Additionally fractional seconds are limited to microseconds. That means if the parser finds for instance nanoseconds it will round it to microseconds.

We can use yum or dnf to install python2-isodate on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-isodate.

Install python2-isodate on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python2-isodate using dnf by running the following command:

sudo dnf -y install python2-isodate

Install python2-isodate on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python2-isodate using yum by running the following command:

sudo yum -y install python2-isodate

How To Uninstall python2-isodate on Rocky Linux 8

To uninstall only the python2-isodate package we can use the following command:

sudo dnf remove python2-isodate

python2-isodate Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/isodate
/usr/lib/python2.7/site-packages/isodate-0.6.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/isodate-0.6.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/isodate-0.6.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/isodate-0.6.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/isodate-0.6.0-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/isodate-0.6.0-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/isodate/__init__.py
/usr/lib/python2.7/site-packages/isodate/__init__.pyc
/usr/lib/python2.7/site-packages/isodate/__init__.pyo
/usr/lib/python2.7/site-packages/isodate/duration.py
/usr/lib/python2.7/site-packages/isodate/duration.pyc
/usr/lib/python2.7/site-packages/isodate/duration.pyo
/usr/lib/python2.7/site-packages/isodate/isodates.py
/usr/lib/python2.7/site-packages/isodate/isodates.pyc
/usr/lib/python2.7/site-packages/isodate/isodates.pyo
/usr/lib/python2.7/site-packages/isodate/isodatetime.py
/usr/lib/python2.7/site-packages/isodate/isodatetime.pyc
/usr/lib/python2.7/site-packages/isodate/isodatetime.pyo
/usr/lib/python2.7/site-packages/isodate/isoduration.py
/usr/lib/python2.7/site-packages/isodate/isoduration.pyc
/usr/lib/python2.7/site-packages/isodate/isoduration.pyo
/usr/lib/python2.7/site-packages/isodate/isoerror.py
/usr/lib/python2.7/site-packages/isodate/isoerror.pyc
/usr/lib/python2.7/site-packages/isodate/isoerror.pyo
/usr/lib/python2.7/site-packages/isodate/isostrf.py
/usr/lib/python2.7/site-packages/isodate/isostrf.pyc
/usr/lib/python2.7/site-packages/isodate/isostrf.pyo
/usr/lib/python2.7/site-packages/isodate/isotime.py
/usr/lib/python2.7/site-packages/isodate/isotime.pyc
/usr/lib/python2.7/site-packages/isodate/isotime.pyo
/usr/lib/python2.7/site-packages/isodate/isotzinfo.py
/usr/lib/python2.7/site-packages/isodate/isotzinfo.pyc
/usr/lib/python2.7/site-packages/isodate/isotzinfo.pyo
/usr/lib/python2.7/site-packages/isodate/tests
/usr/lib/python2.7/site-packages/isodate/tests/__init__.py
/usr/lib/python2.7/site-packages/isodate/tests/__init__.pyc
/usr/lib/python2.7/site-packages/isodate/tests/__init__.pyo
/usr/lib/python2.7/site-packages/isodate/tests/test_date.py
/usr/lib/python2.7/site-packages/isodate/tests/test_date.pyc
/usr/lib/python2.7/site-packages/isodate/tests/test_date.pyo
/usr/lib/python2.7/site-packages/isodate/tests/test_datetime.py
/usr/lib/python2.7/site-packages/isodate/tests/test_datetime.pyc
/usr/lib/python2.7/site-packages/isodate/tests/test_datetime.pyo
/usr/lib/python2.7/site-packages/isodate/tests/test_duration.py
/usr/lib/python2.7/site-packages/isodate/tests/test_duration.pyc
/usr/lib/python2.7/site-packages/isodate/tests/test_duration.pyo
/usr/lib/python2.7/site-packages/isodate/tests/test_pickle.py
/usr/lib/python2.7/site-packages/isodate/tests/test_pickle.pyc
/usr/lib/python2.7/site-packages/isodate/tests/test_pickle.pyo
/usr/lib/python2.7/site-packages/isodate/tests/test_strf.py
/usr/lib/python2.7/site-packages/isodate/tests/test_strf.pyc
/usr/lib/python2.7/site-packages/isodate/tests/test_strf.pyo
/usr/lib/python2.7/site-packages/isodate/tests/test_time.py
/usr/lib/python2.7/site-packages/isodate/tests/test_time.pyc
/usr/lib/python2.7/site-packages/isodate/tests/test_time.pyo
/usr/lib/python2.7/site-packages/isodate/tzinfo.py
/usr/lib/python2.7/site-packages/isodate/tzinfo.pyc
/usr/lib/python2.7/site-packages/isodate/tzinfo.pyo
/usr/share/doc/python2-isodate
/usr/share/doc/python2-isodate/CHANGES.txt
/usr/share/doc/python2-isodate/README.rst
/usr/share/doc/python2-isodate/TODO.txt

References

Summary

In this tutorial we learn how to install python2-isodate on Rocky Linux 8 using yum and dnf.