ftpgrab command not found

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

Introduction

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

ftpgrab: command not found

or when using sudo you get the following error message

sudo: ftpgrab: command not found

Solutions to ftpgrab: command not found

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

In Ubuntu ftpgrab is provided by ftpgrab package.

ftpgrab is:

ftpgrab is a utility for maintaining FTP mirrors. In fact not unlike the “Mirror” perl program. However ftpgrab is oriented towards the smaller site which doesn’t have the resources to mirror entire version trees of software.

The primary “plus point” of ftpgrab is that it can base download decisions by parsing version numbers out of filenames. For example, ftpgrab will recognize that the file “linux-2.2.2.tar.gz” is newer than “linux-2.2.1.tar.gz” based on the version string. It will then download the new version and delete the old one when it is done, thus saving you mirroring 10 kernel versions all at >10Mb each.

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

sudo apt-get -y install ftpgrab

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

You can also use apt command to install ftpgrab.

sudo apt -y install ftpgrab

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

sudo aptitude install ftpgrab

Summary

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