How to Install and Uninstall hachoir Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 19,2024

1. Install "hachoir" package

This is a short guide on how to install hachoir on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install hachoir

2. Uninstall "hachoir" package

This guide covers the steps necessary to uninstall hachoir on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove hachoir $ sudo apt autoclean && sudo apt autoremove

3. Information about the hachoir package on Ubuntu 20.10 (Groovy Gorilla)

Package: hachoir
Architecture: all
Version: 3.1.0+dfsg-1
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2444
Provides: python3-hachoir
Depends: python3:any, python3-urwid (>= 0.9.4), python3-wxgtk4.0
Breaks: python-hachoir-core, python-hachoir-metadata, python-hachoir-parser, python-hachoir-regex, python-hachoir-subfile, python-hachoir-urwid, python-hachoir-wx
Replaces: python-hachoir-core, python-hachoir-metadata, python-hachoir-parser, python-hachoir-regex, python-hachoir-subfile, python-hachoir-urwid, python-hachoir-wx
Filename: pool/universe/h/hachoir/hachoir_3.1.0+dfsg-1_all.deb
Size: 517844
MD5sum: a4a13f4977d6e89128fc10608c34fb03
SHA1: 770100f787496a95d1e1baab888d160c42db087f
SHA256: e40cc2c820f760ba0d7118d15f913b5e345eed5453894057e9f66d4ebe367e1c
SHA512: ac9ba7cc75837401293eb223a9a938125928baed1574668e2177f0922b17c978dc25e20a76cae38357081da4b6a4e8aca4cc319cde5ddc2899bcd8765799e2c9
Homepage: https://github.com/vstinner/hachoir
Description-en: Python framework to parse and edit binary files
Hachoir is a Python library used to represent of a binary file as a tree of
Python objects. Each object has a type, a value, an address, etc. The goal is
to be able to know the meaning of each bit in a file.
.
Why using slow Python code instead of fast hardcoded C code? Hachoir has many
interesting features:
* Autofix: Hachoir is able to open invalid / truncated files
* Lazy: Open a file is very fast since no information is read from file,
data are read and/or computed when the user ask for it
* Types: Hachoir has many predefined field types (integer, bit, string, etc.)
and supports string with charset (ISO-8859-1, UTF-8, UTF-16, ...)
* Addresses and sizes are stored in bit, so flags are stored as classic fields
* Endian: You have to set endian once, and then number are converted in the
right endian
* Editor: Using Hachoir representation of data, you can edit, insert, remove
data and then save in a new file.
.
Hachoir provides command-line tools using its parsers:
* hachoir-grep: find a text pattern in a binary file
* hachoir-metadata: get metadata from binary files
* hachoir-strip: modify a file to remove metadata
* hachoir-urwid: display the content of a binary file in text mode
* hachoir-wx: display the content of a binary file in a GUI
Description-md5: bbdcbc8615b21aa48b4094eb317877a3