Ways to Uninstall and Install hstr Ubuntu 22.04

Updated: September 3, 2022

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. I will show you how to install hstr on Ubuntu 22.04 in this tutorial.

Requirements to install

  • Operating system: Ubuntu 22.04 is needed for hstr to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install hstr on Ubuntu 22.04

Install hstr Ubuntu 22.04

hstr is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install hstr using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get hstr on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install hstr Ubuntu by executing this command in the terminal.

sudo apt install hstr

Install hstr using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

After installing, you can now install hstr by following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install hstr Ubuntu by executing this command in the terminal.

sudo aptitude -y install hstr

Uninstall hstr on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just hstr.

You can uninstall hstr Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove hstr

If you want to uninstall hstr and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge hstr

Ending

In this tutorial, I showed you ways to install hstr on Ubuntu 22.04 and some ways to uninstall hstr too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.