tig command not found

In this troubleshooting guide we learn how to fix tig command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

tig: command not found

or when using sudo you get the following error message

sudo: tig: command not found

Solutions to tig: command not found

How To Fix tig: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tig is provided by tig package.

tig is:

This package contains a text-mode interface for the version control system Git. It may be used to browse the history and contents of a repository.

The following main features are supported:

  • View revision logs, commit messages, diffstats, diffs, archive trees and file contents.
  • Visualize revision graphs.
  • Stage / unstage changes and add untracked files.
  • Merge files.
  • Cherry-pick commits.

tig may also be used as a pager. It reads input from stdin and colorizes it.

To fix this problem, we can install more using the command below.

sudo apt-get -y install tig

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install tig.

sudo apt -y install tig

Or if you have aptitude installed you can use the following command.

sudo aptitude install tig

Summary

In this tutorial we learn how to fix tig command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.