gitpkg command not found

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

Introduction

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

gitpkg: command not found

or when using sudo you get the following error message

sudo: gitpkg: command not found

Solutions to gitpkg: command not found

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

In Ubuntu gitpkg is provided by gitpkg package.

gitpkg is:

This package provides tools and automation to assist with maintaining Debian packages in git.

gitpkg - creates a source package from specified repository versions. git-debimport - creates a git repository from a set of existing packages.

No particular repository layout is required for gitpkg to export source from it, existing repositories should require no modification. If there is a valid Debian source tree in there then gitpkg can export a package from any revision of it for you. In the Grand Old Manner these tools are intended to simplify specific parts of your existing packaging process and integrate smoothly with it, not to replace that with its own singular constraints on how you may work. Since not every packaging style suits every package, gitpkg aims to be able to work equally well with all of them by sticking to just its part of the job and staying out of your way entirely until that job needs to be done. Hook points are provided for performing additional package and user specific operations as you may desire or require at export time.

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

sudo apt-get -y install gitpkg

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

You can also use apt command to install gitpkg.

sudo apt -y install gitpkg

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

sudo aptitude install gitpkg

Summary

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