How To Install python3-msoffcrypto on Rocky Linux 8

In this tutorial we learn how to install python3-msoffcrypto on Rocky Linux 8. python3-msoffcrypto is Python library for decrypting MS Office files with passwords or other keys

Introduction

In this tutorial we learn how to install python3-msoffcrypto on Rocky Linux 8.

What is python3-msoffcrypto

The msoffcrypto-tool (formerly ms-offcrypto-tool) is a Python tool and library for decrypting encrypted Microsoft Office files with password, intermediate key, or private key which generated its escrow key.

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

Install python3-msoffcrypto 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 python3-msoffcrypto using dnf by running the following command:

sudo dnf -y install python3-msoffcrypto

Install python3-msoffcrypto 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 python3-msoffcrypto using yum by running the following command:

sudo yum -y install python3-msoffcrypto

How To Uninstall python3-msoffcrypto on Rocky Linux 8

To uninstall only the python3-msoffcrypto package we can use the following command:

sudo dnf remove python3-msoffcrypto

python3-msoffcrypto Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/msoffcrypto
/usr/lib/python3.6/site-packages/msoffcrypto/__init__.py
/usr/lib/python3.6/site-packages/msoffcrypto/__main__.py
/usr/lib/python3.6/site-packages/msoffcrypto/__pycache__
/usr/lib/python3.6/site-packages/msoffcrypto/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format
/usr/lib/python3.6/site-packages/msoffcrypto/format/__init__.py
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/common.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/common.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/doc97.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/doc97.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/ooxml.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/ooxml.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/ppt97.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/ppt97.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/xls97.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/__pycache__/xls97.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/format/base.py
/usr/lib/python3.6/site-packages/msoffcrypto/format/common.py
/usr/lib/python3.6/site-packages/msoffcrypto/format/doc97.py
/usr/lib/python3.6/site-packages/msoffcrypto/format/ooxml.py
/usr/lib/python3.6/site-packages/msoffcrypto/format/ppt97.py
/usr/lib/python3.6/site-packages/msoffcrypto/format/xls97.py
/usr/lib/python3.6/site-packages/msoffcrypto/method
/usr/lib/python3.6/site-packages/msoffcrypto/method/__init__.py
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/ecma376_agile.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/ecma376_agile.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/ecma376_extensible.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/ecma376_extensible.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/ecma376_standard.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/ecma376_standard.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/rc4.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/rc4.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/rc4_cryptoapi.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/rc4_cryptoapi.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/xor_obfuscation.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/__pycache__/xor_obfuscation.cpython-36.pyc
/usr/lib/python3.6/site-packages/msoffcrypto/method/ecma376_agile.py
/usr/lib/python3.6/site-packages/msoffcrypto/method/ecma376_extensible.py
/usr/lib/python3.6/site-packages/msoffcrypto/method/ecma376_standard.py
/usr/lib/python3.6/site-packages/msoffcrypto/method/rc4.py
/usr/lib/python3.6/site-packages/msoffcrypto/method/rc4_cryptoapi.py
/usr/lib/python3.6/site-packages/msoffcrypto/method/xor_obfuscation.py
/usr/lib/python3.6/site-packages/msoffcrypto_tool-4.11.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/msoffcrypto_tool-4.11.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/msoffcrypto_tool-4.11.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/msoffcrypto_tool-4.11.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/msoffcrypto_tool-4.11.0-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/msoffcrypto_tool-4.11.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/msoffcrypto_tool-4.11.0-py3.6.egg-info/top_level.txt
/usr/share/licenses/python3-msoffcrypto
/usr/share/licenses/python3-msoffcrypto/LICENSE.txt

References

Summary

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