How To Install cantoolz on Fedora 34

cantoolz is Framework for Controller Area Network (CAN) bus analysis

Introduction

In this tutorial we learn how to install cantoolz on Fedora 34.

What is cantoolz

CANToolz is a framework for analyzing CAN networks and devices. It provides multiple modules that can be chained using CANToolz’s pipe system and used by security researchers, automotive/OEM security testers in black-box analysis. CANToolz can be used for ECU discovery, MitM testing, fuzzing, brute-forcing, scanning or R&D, testing and validation.

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

Install cantoolz on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install cantoolz

Install cantoolz on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install cantoolz

How To Uninstall cantoolz on Fedora 34

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

sudo dnf remove cantoolz

cantoolz Package Contents on Fedora 34

/usr/bin/cantoolz
/usr/lib/python3.9/site-packages/CANToolz-3.7.0-py3.9.egg-info
/usr/lib/python3.9/site-packages/CANToolz-3.7.0-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/CANToolz-3.7.0-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/CANToolz-3.7.0-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/CANToolz-3.7.0-py3.9.egg-info/not-zip-safe
/usr/lib/python3.9/site-packages/CANToolz-3.7.0-py3.9.egg-info/requires.txt
/usr/lib/python3.9/site-packages/CANToolz-3.7.0-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/cantoolz
/usr/lib/python3.9/site-packages/cantoolz/__init__.py
/usr/lib/python3.9/site-packages/cantoolz/__pycache__
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/can.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/can.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/can232.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/can232.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/correl.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/correl.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/engine.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/engine.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/frag.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/frag.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/isotp.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/isotp.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/module.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/module.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/replay.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/replay.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/uds.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/__pycache__/uds.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/can.py
/usr/lib/python3.9/site-packages/cantoolz/can232.py
/usr/lib/python3.9/site-packages/cantoolz/correl.py
/usr/lib/python3.9/site-packages/cantoolz/engine.py
/usr/lib/python3.9/site-packages/cantoolz/frag.py
/usr/lib/python3.9/site-packages/cantoolz/isotp.py
/usr/lib/python3.9/site-packages/cantoolz/module.py
/usr/lib/python3.9/site-packages/cantoolz/modules
/usr/lib/python3.9/site-packages/cantoolz/modules/__init__.py
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/analyze.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/analyze.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/can_control.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/can_control.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/ecu_controls.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/ecu_controls.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/firewall.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/firewall.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/fuzz.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/fuzz.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/ping.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/ping.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/pipe_switch.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/pipe_switch.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/replay.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/__pycache__/replay.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/analyze.py
/usr/lib/python3.9/site-packages/cantoolz/modules/can_control.py
/usr/lib/python3.9/site-packages/cantoolz/modules/ecu_controls.py
/usr/lib/python3.9/site-packages/cantoolz/modules/firewall.py
/usr/lib/python3.9/site-packages/cantoolz/modules/fuzz.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__init__.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_CAN232.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_CAN232.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_CANBusTriple.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_CANBusTriple.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_CANSocket.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_CANSocket.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_TCP2CAN.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_TCP2CAN.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_USBtin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_USBtin.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_fakeIO.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/hw_fakeIO.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/simple_io.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/__pycache__/simple_io.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/io/hw_CAN232.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io/hw_CANBusTriple.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io/hw_CANSocket.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io/hw_TCP2CAN.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io/hw_USBtin.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io/hw_fakeIO.py
/usr/lib/python3.9/site-packages/cantoolz/modules/io/simple_io.py
/usr/lib/python3.9/site-packages/cantoolz/modules/ping.py
/usr/lib/python3.9/site-packages/cantoolz/modules/pipe_switch.py
/usr/lib/python3.9/site-packages/cantoolz/modules/replay.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__init__.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/anti_theft_1.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/anti_theft_1.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/anti_theft_2.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/anti_theft_2.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/control_ecu_doors.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/control_ecu_doors.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/control_ecu_engine.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/control_ecu_engine.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/control_ecu_lights.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/control_ecu_lights.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_door.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_door.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_engine.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_engine.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_light.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_light.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_switch.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/ecu_switch.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/uds_engine_auth_baypass.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/uds_engine_auth_baypass.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/uds_tester_ecu_engine.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/__pycache__/uds_tester_ecu_engine.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/anti_theft_1.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/anti_theft_2.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/control_ecu_doors.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/control_ecu_engine.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/control_ecu_lights.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/ecu_door.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/ecu_engine.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/ecu_light.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/ecu_switch.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/uds_engine_auth_baypass.py
/usr/lib/python3.9/site-packages/cantoolz/modules/vircar/uds_tester_ecu_engine.py
/usr/lib/python3.9/site-packages/cantoolz/replay.py
/usr/lib/python3.9/site-packages/cantoolz/stream
/usr/lib/python3.9/site-packages/cantoolz/stream/__init__.py
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/forced_sampler.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/forced_sampler.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/integrator.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/integrator.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/normalizer.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/normalizer.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/processor.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/processor.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/sampler.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/sampler.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/selector.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/selector.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/separator.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/separator.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/subnet.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/__pycache__/subnet.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/stream/forced_sampler.py
/usr/lib/python3.9/site-packages/cantoolz/stream/integrator.py
/usr/lib/python3.9/site-packages/cantoolz/stream/normalizer.py
/usr/lib/python3.9/site-packages/cantoolz/stream/processor.py
/usr/lib/python3.9/site-packages/cantoolz/stream/sampler.py
/usr/lib/python3.9/site-packages/cantoolz/stream/selector.py
/usr/lib/python3.9/site-packages/cantoolz/stream/separator.py
/usr/lib/python3.9/site-packages/cantoolz/stream/subnet.py
/usr/lib/python3.9/site-packages/cantoolz/uds.py
/usr/lib/python3.9/site-packages/cantoolz/ui
/usr/lib/python3.9/site-packages/cantoolz/ui/__init__.py
/usr/lib/python3.9/site-packages/cantoolz/ui/__pycache__
/usr/lib/python3.9/site-packages/cantoolz/ui/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/ui/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/ui/__pycache__/cli.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/ui/__pycache__/cli.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/ui/__pycache__/web.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/ui/__pycache__/web.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/ui/cli.py
/usr/lib/python3.9/site-packages/cantoolz/ui/static
/usr/lib/python3.9/site-packages/cantoolz/ui/static/css
/usr/lib/python3.9/site-packages/cantoolz/ui/static/css/bootstrap.css
/usr/lib/python3.9/site-packages/cantoolz/ui/static/css/main.css
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/1.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/background.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/back_1.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/back_2.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/back_3.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/down_1.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/down_2.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/front_1.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/front_2.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/front_3.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/up_1.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/img/vircar/tiles/up_2.png
/usr/lib/python3.9/site-packages/cantoolz/ui/static/js
/usr/lib/python3.9/site-packages/cantoolz/ui/static/js/d3.js
/usr/lib/python3.9/site-packages/cantoolz/ui/static/js/d3.v3.min.js
/usr/lib/python3.9/site-packages/cantoolz/ui/static/js/main.js
/usr/lib/python3.9/site-packages/cantoolz/ui/templates
/usr/lib/python3.9/site-packages/cantoolz/ui/templates/index.html
/usr/lib/python3.9/site-packages/cantoolz/ui/templates/vircar.html
/usr/lib/python3.9/site-packages/cantoolz/ui/web.py
/usr/lib/python3.9/site-packages/cantoolz/utils
/usr/lib/python3.9/site-packages/cantoolz/utils/__init__.py
/usr/lib/python3.9/site-packages/cantoolz/utils/__pycache__
/usr/lib/python3.9/site-packages/cantoolz/utils/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/utils/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/utils/__pycache__/bits.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/utils/__pycache__/bits.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/utils/__pycache__/stats.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cantoolz/utils/__pycache__/stats.cpython-39.pyc
/usr/lib/python3.9/site-packages/cantoolz/utils/bits.py
/usr/lib/python3.9/site-packages/cantoolz/utils/stats.py
/usr/share/doc/cantoolz
/usr/share/doc/cantoolz/CONTRIBUTORS.md
/usr/share/doc/cantoolz/NOTICE.md
/usr/share/doc/cantoolz/README.md
/usr/share/licenses/cantoolz
/usr/share/licenses/cantoolz/LICENSE.md

References

Summary

In this tutorial we learn how to install cantoolz on Fedora 34 using yum and dnf.