How To Install ht on Debian 9

In this tutorial we learn how to install ht on Debian 9. ht is Viewer/editor/analyser (mostly) for executables

Introduction

In this tutorial we learn how to install ht on Debian 9.

What is ht

ht is:

This program is a file viewer, editor and analyzer for text, binary, and (especially) executable files - in other words it is an advanced hexeditor and disassembler.

For more info (e.g. keybindings) see the README file!

  1. Supported file formats
    • common object file format (COFF/XCOFF32)
    • executable and linkable format (ELF)
    • linear executables (LE)
    • standard DO$ executables (MZ)
    • new executables (NE)
    • portable executables (PE32/PE64)
    • java class files (CLASS)
    • Mach exe/link format (MachO)
    • X-Box executable (XBE)
    • Flat (FLT)
    • PowerPC executable format (PEF)
  2. Code & Data Analyser
    • finds branch sources and destinations recursively
    • finds procedure entries
    • creates labels based on this information
    • creates xref information
    • allows one to interactively analyse unexplored code
    • allows one to create/rename/delete labels
    • allows one to create/edit comments
    • supports x86, ia64, alpha, ppc and java code
  3. Target systems
    • DJGPP
    • GNU/Linux
    • FreeBSD
    • OpenBSD
    • Win32

Please note that the program is called “hte” not “ht” as the package name suggests.

There are three methods to install ht on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ht Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ht using apt-get by running the following command:

sudo apt-get -y install ht

Install ht Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ht using apt by running the following command:

sudo apt -y install ht

Install ht Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ht using aptitude by running the following command:

sudo aptitude -y install ht

How To Uninstall ht on Debian 9

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

sudo apt-get remove ht

Uninstall ht And Its Dependencies

To uninstall ht and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove ht

Remove ht Configurations and Data

To remove ht configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge ht

Remove ht configuration, data, and all of its dependencies

We can use the following command to remove ht configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ht

Dependencies

ht have the following dependencies:

References

Summary

In this tutorial we learn how to install ht package on Debian 9 using different package management tools: apt, apt-get and aptitude.