How To Install Rsync In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
rsync
Install rsync
-
Debian
apt-get install rsyncClick to copy -
Ubuntu
apt-get install rsyncClick to copy -
Alpine OS
apk add rsyncClick to copy -
Arch Linux
pacman -S rsyncClick to copy -
Kali Linux
apt-get install rsyncClick to copy -
CentOS
yum install rsyncClick to copy -
Fedora
dnf install rsyncClick to copy -
Raspbian
apt-get install rsyncClick to copy -
macOS
brew install rsyncClick to copy
Transfer files either to or from a remote host (not between two remote hosts). Can transfer single files, or multiple files matching a pattern.
How to use rsync?
Below are few example commands for rsync that you can use in the terminal.
Transfer file from local to remote host:rsync path/to/file remote_host_name:remote_host_locationClick to copyTransfer file from remote host to local:rsync remote_host_name:remote_file_location local_file_locationClick to copyTransfer file in archive (to preserve attributes) and compressed (zipped) mode with verbose and human-readable progress:rsync -azvhP path/to/file remote_host_name:remote_host_locationClick to copyTransfer a directory and all its children from a remote to local:rsync -r remote_host_name:remote_folder_location local_folder_locationClick to copyTransfer only updated files from remote host:rsync -ru remote_host_name:remote_folder_location local_folder_locationClick to copyTransfer file over SSH and delete local files that do not exist on remote host:rsync -e ssh --delete remote_host_name:remote_file local_fileClick to copyTransfer file over SSH and show global progress:rsync -e ssh --info=progress2 remote_host_name:remote_file local_fileClick to copy
Installation of latest rsync command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




