rsync command not found

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

Introduction

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

rsync: command not found

or when using sudo you get the following error message

sudo: rsync: command not found

Solutions to rsync: command not found

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

In Ubuntu rsync is provided by rsync package.

rsync is:

rsync is a fast and versatile file-copying tool which can copy locally and to/from a remote host. It offers many options to control its behavior, and its remote-update protocol can minimize network traffic to make transferring updates between machines fast and efficient.

It is widely used for backups and mirroring and as an improved copy command for everyday use.

This package provides both the rsync command line tool and optional daemon functionality.

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

sudo apt-get -y install rsync

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

You can also use apt command to install rsync.

sudo apt -y install rsync

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

sudo aptitude install rsync

Summary

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