gitk command not found

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

Introduction

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

gitk: command not found

or when using sudo you get the following error message

sudo: gitk: command not found

Solutions to gitk: command not found

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

In Ubuntu gitk is provided by gitk package.

gitk is:

Git is popular version control system designed to handle very large projects with speed and efficiency; it is used for many high profile open source projects, most notably the Linux kernel.

Git falls in the category of distributed source code management tools. Every Git working directory is a full-fledged repository with full revision tracking capabilities, not dependent on network access or a central server.

This package provides the gitk program, a tcl/tk revision tree visualizer.

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

sudo apt-get -y install gitk

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

You can also use apt command to install gitk.

sudo apt -y install gitk

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

sudo aptitude install gitk

Summary

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