How To Install hstr on Kali Linux

In this tutorial we learn how to install hstr on Kali Linux. hstr is Suggest box like shell history completion

Introduction

In this tutorial we learn how to install hstr on Kali Linux.

What is hstr

hstr is:

Command line tool that brings improved bash/zsh command completion from the history. It aims to make completion easier and more efficient than Ctrl-r.

HSTR can also manage your command history (for instance you can remove commands that are obsolete or contain a piece of sensitive information) or bookmark your favorite commands.

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

Install hstr Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install hstr

Install hstr Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install hstr

Install hstr Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install hstr

How To Uninstall hstr on Kali Linux

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

sudo apt-get remove hstr

Uninstall hstr And Its Dependencies

To uninstall hstr and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove hstr

Remove hstr Configurations and Data

To remove hstr configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge hstr

Remove hstr configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge hstr

Dependencies

hstr have the following dependencies:

References

Summary

In this tutorial we learn how to install hstr package on Kali Linux using different package management tools: apt, apt-get and aptitude.