How To Install binwalk on Fedora 36

In this tutorial we learn how to install binwalk in Fedora 36. binwalk is Firmware analysis tool

Introduction

In this tutorial we learn how to install binwalk on Fedora 36.

What is binwalk

Binwalk is a tool for searching a given binary image for embedded files and executable code. Specifically, it is designed for identifying files and code embedded inside of firmware images. Binwalk uses the python-magic library, so it is compatible with magic signatures created for the Unix file utility.

We can use yum or dnf to install binwalk on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install binwalk.

Install binwalk on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install binwalk

Install binwalk on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install binwalk using yum by running the following command:

sudo yum -y install binwalk

How To Uninstall binwalk on Fedora 36

To uninstall only the binwalk package we can use the following command:

sudo dnf remove binwalk

binwalk Package Contents on Fedora 36

/usr/bin/binwalk
/usr/lib/python3.10/site-packages/binwalk
/usr/lib/python3.10/site-packages/binwalk-2.3.2-py3.10.egg-info
/usr/lib/python3.10/site-packages/binwalk-2.3.2-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/binwalk-2.3.2-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/binwalk-2.3.2-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/binwalk-2.3.2-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/binwalk/__init__.py
/usr/lib/python3.10/site-packages/binwalk/__main__.py
/usr/lib/python3.10/site-packages/binwalk/__pycache__
/usr/lib/python3.10/site-packages/binwalk/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/config
/usr/lib/python3.10/site-packages/binwalk/config/extract.conf
/usr/lib/python3.10/site-packages/binwalk/core
/usr/lib/python3.10/site-packages/binwalk/core/__init__.py
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/common.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/common.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/display.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/display.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/idb.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/idb.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/magic.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/magic.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/module.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/module.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/plugin.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/plugin.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/settings.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/settings.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/statuserver.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/statuserver.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/core/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/core/common.py
/usr/lib/python3.10/site-packages/binwalk/core/compat.py
/usr/lib/python3.10/site-packages/binwalk/core/display.py
/usr/lib/python3.10/site-packages/binwalk/core/exceptions.py
/usr/lib/python3.10/site-packages/binwalk/core/idb.py
/usr/lib/python3.10/site-packages/binwalk/core/magic.py
/usr/lib/python3.10/site-packages/binwalk/core/module.py
/usr/lib/python3.10/site-packages/binwalk/core/plugin.py
/usr/lib/python3.10/site-packages/binwalk/core/settings.py
/usr/lib/python3.10/site-packages/binwalk/core/statuserver.py
/usr/lib/python3.10/site-packages/binwalk/core/version.py
/usr/lib/python3.10/site-packages/binwalk/magic
/usr/lib/python3.10/site-packages/binwalk/magic/animation
/usr/lib/python3.10/site-packages/binwalk/magic/archives
/usr/lib/python3.10/site-packages/binwalk/magic/binarch
/usr/lib/python3.10/site-packages/binwalk/magic/bincast
/usr/lib/python3.10/site-packages/binwalk/magic/binwalk
/usr/lib/python3.10/site-packages/binwalk/magic/bootloaders
/usr/lib/python3.10/site-packages/binwalk/magic/code
/usr/lib/python3.10/site-packages/binwalk/magic/compressed
/usr/lib/python3.10/site-packages/binwalk/magic/console
/usr/lib/python3.10/site-packages/binwalk/magic/crypto
/usr/lib/python3.10/site-packages/binwalk/magic/ebml
/usr/lib/python3.10/site-packages/binwalk/magic/ecos
/usr/lib/python3.10/site-packages/binwalk/magic/efi
/usr/lib/python3.10/site-packages/binwalk/magic/encoding
/usr/lib/python3.10/site-packages/binwalk/magic/executables
/usr/lib/python3.10/site-packages/binwalk/magic/filesystems
/usr/lib/python3.10/site-packages/binwalk/magic/firmware
/usr/lib/python3.10/site-packages/binwalk/magic/hashing
/usr/lib/python3.10/site-packages/binwalk/magic/images
/usr/lib/python3.10/site-packages/binwalk/magic/linux
/usr/lib/python3.10/site-packages/binwalk/magic/lzma
/usr/lib/python3.10/site-packages/binwalk/magic/misc
/usr/lib/python3.10/site-packages/binwalk/magic/network
/usr/lib/python3.10/site-packages/binwalk/magic/phones
/usr/lib/python3.10/site-packages/binwalk/magic/sql
/usr/lib/python3.10/site-packages/binwalk/magic/vxworks
/usr/lib/python3.10/site-packages/binwalk/modules
/usr/lib/python3.10/site-packages/binwalk/modules/__init__.py
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/compression.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/compression.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/disasm.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/disasm.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/entropy.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/entropy.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/extractor.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/extractor.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/general.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/general.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/hexdiff.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/hexdiff.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/signature.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/__pycache__/signature.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/modules/compression.py
/usr/lib/python3.10/site-packages/binwalk/modules/disasm.py
/usr/lib/python3.10/site-packages/binwalk/modules/entropy.py
/usr/lib/python3.10/site-packages/binwalk/modules/extractor.py
/usr/lib/python3.10/site-packages/binwalk/modules/general.py
/usr/lib/python3.10/site-packages/binwalk/modules/hexdiff.py
/usr/lib/python3.10/site-packages/binwalk/modules/signature.py
/usr/lib/python3.10/site-packages/binwalk/plugins
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/arcadyan.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/arcadyan.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/cpio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/cpio.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/dlromfsextract.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/dlromfsextract.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/gzipextract.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/gzipextract.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/gzipvalid.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/gzipvalid.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/jffs2valid.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/jffs2valid.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/lzmaextract.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/lzmaextract.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/lzmavalid.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/lzmavalid.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/tar.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/tar.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/ubivalid.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/ubivalid.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/unjffs2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/unjffs2.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/unpfs.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/unpfs.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/ziphelper.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/ziphelper.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/zlibextract.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/zlibextract.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/zlibvalid.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/__pycache__/zlibvalid.cpython-310.pyc
/usr/lib/python3.10/site-packages/binwalk/plugins/arcadyan.py
/usr/lib/python3.10/site-packages/binwalk/plugins/cpio.py
/usr/lib/python3.10/site-packages/binwalk/plugins/dlromfsextract.py
/usr/lib/python3.10/site-packages/binwalk/plugins/gzipextract.py
/usr/lib/python3.10/site-packages/binwalk/plugins/gzipvalid.py
/usr/lib/python3.10/site-packages/binwalk/plugins/jffs2valid.py
/usr/lib/python3.10/site-packages/binwalk/plugins/lzmaextract.py
/usr/lib/python3.10/site-packages/binwalk/plugins/lzmavalid.py
/usr/lib/python3.10/site-packages/binwalk/plugins/tar.py
/usr/lib/python3.10/site-packages/binwalk/plugins/ubivalid.py
/usr/lib/python3.10/site-packages/binwalk/plugins/unjffs2.py
/usr/lib/python3.10/site-packages/binwalk/plugins/unpfs.py
/usr/lib/python3.10/site-packages/binwalk/plugins/ziphelper.py
/usr/lib/python3.10/site-packages/binwalk/plugins/zlibextract.py
/usr/lib/python3.10/site-packages/binwalk/plugins/zlibvalid.py
/usr/share/doc/binwalk
/usr/share/doc/binwalk/API.md
/usr/share/doc/binwalk/INSTALL.md
/usr/share/doc/binwalk/README.md
/usr/share/licenses/binwalk
/usr/share/licenses/binwalk/LICENSE

References

Summary

In this tutorial we learn how to install binwalk on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).