How To Install python3-capstone on Rocky Linux 8

In this tutorial we learn how to install python3-capstone on Rocky Linux 8. python3-capstone is Python3 bindings for capstone

Introduction

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

What is python3-capstone

Capstone is a disassembly framework with the target of becoming the ultimate disasm engine for binary analysis and reversing in the security community. The python3-capstone package contains python3 bindings for capstone.

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

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

sudo dnf -y install python3-capstone

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

sudo yum -y install python3-capstone

How To Uninstall python3-capstone on Rocky Linux 8

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

sudo dnf remove python3-capstone

python3-capstone Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/a6/068588ab65721ac4cf0e3b43e396c1baef7f84.1
/usr/lib/python3.6/site-packages/capstone
/usr/lib/python3.6/site-packages/capstone-4.0.2-py3.6.egg-info
/usr/lib/python3.6/site-packages/capstone-4.0.2-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/capstone-4.0.2-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/capstone-4.0.2-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/capstone-4.0.2-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/capstone-4.0.2-py3.6.egg-info/zip-safe
/usr/lib/python3.6/site-packages/capstone/__init__.py
/usr/lib/python3.6/site-packages/capstone/__pycache__
/usr/lib/python3.6/site-packages/capstone/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm64.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm64.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm64_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm64_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/arm_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/evm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/evm.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/evm_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/evm_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m680x.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m680x.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m680x_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m680x_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m68k.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m68k.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m68k_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/m68k_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/mips.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/mips.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/mips_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/mips_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/ppc.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/ppc.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/ppc_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/ppc_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/sparc.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/sparc.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/sparc_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/sparc_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/systemz.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/systemz.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/sysz_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/sysz_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/tms320c64x.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/tms320c64x.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/tms320c64x_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/tms320c64x_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/x86.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/x86.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/x86_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/x86_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/xcore.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/xcore.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/xcore_const.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/capstone/__pycache__/xcore_const.cpython-36.pyc
/usr/lib/python3.6/site-packages/capstone/arm.py
/usr/lib/python3.6/site-packages/capstone/arm64.py
/usr/lib/python3.6/site-packages/capstone/arm64_const.py
/usr/lib/python3.6/site-packages/capstone/arm_const.py
/usr/lib/python3.6/site-packages/capstone/evm.py
/usr/lib/python3.6/site-packages/capstone/evm_const.py
/usr/lib/python3.6/site-packages/capstone/include
/usr/lib/python3.6/site-packages/capstone/include/capstone
/usr/lib/python3.6/site-packages/capstone/include/capstone/arm.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/arm64.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/capstone.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/evm.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/m680x.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/m68k.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/mips.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/platform.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/ppc.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/sparc.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/systemz.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/tms320c64x.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/x86.h
/usr/lib/python3.6/site-packages/capstone/include/capstone/xcore.h
/usr/lib/python3.6/site-packages/capstone/lib
/usr/lib/python3.6/site-packages/capstone/lib/libcapstone.a
/usr/lib/python3.6/site-packages/capstone/lib/libcapstone.so
/usr/lib/python3.6/site-packages/capstone/m680x.py
/usr/lib/python3.6/site-packages/capstone/m680x_const.py
/usr/lib/python3.6/site-packages/capstone/m68k.py
/usr/lib/python3.6/site-packages/capstone/m68k_const.py
/usr/lib/python3.6/site-packages/capstone/mips.py
/usr/lib/python3.6/site-packages/capstone/mips_const.py
/usr/lib/python3.6/site-packages/capstone/ppc.py
/usr/lib/python3.6/site-packages/capstone/ppc_const.py
/usr/lib/python3.6/site-packages/capstone/sparc.py
/usr/lib/python3.6/site-packages/capstone/sparc_const.py
/usr/lib/python3.6/site-packages/capstone/systemz.py
/usr/lib/python3.6/site-packages/capstone/sysz_const.py
/usr/lib/python3.6/site-packages/capstone/tms320c64x.py
/usr/lib/python3.6/site-packages/capstone/tms320c64x_const.py
/usr/lib/python3.6/site-packages/capstone/x86.py
/usr/lib/python3.6/site-packages/capstone/x86_const.py
/usr/lib/python3.6/site-packages/capstone/xcore.py
/usr/lib/python3.6/site-packages/capstone/xcore_const.py

References

Summary

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