How To Install rsync on Rocky Linux 8

In this tutorial we learn how to install rsync on Rocky Linux 8. rsync is A program for synchronizing files over a network

Introduction

In this tutorial we learn how to install rsync on Rocky Linux 8.

What is rsync

Rsync uses a reliable algorithm to bring remote and host files into sync very quickly. Rsync is fast because it just sends the differences in the files over the network instead of sending the complete files. Rsync is often used as a very powerful mirroring process or just as a more capable replacement for the rcp command. A technical report which describes the rsync algorithm is included in this package.

We can use yum or dnf to install rsync on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rsync.

Install rsync on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rsync using dnf by running the following command:

sudo dnf -y install rsync

Install rsync on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rsync using yum by running the following command:

sudo yum -y install rsync

How To Uninstall rsync on Rocky Linux 8

To uninstall only the rsync package we can use the following command:

sudo dnf remove rsync

rsync Package Contents on Rocky Linux 8

/usr/bin/rsync
/usr/lib/.build-id
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/186ea74a00446276d2204267dcf1e07d0869da
/usr/share/doc/rsync
/usr/share/doc/rsync/NEWS
/usr/share/doc/rsync/OLDNEWS
/usr/share/doc/rsync/README
/usr/share/doc/rsync/support
/usr/share/doc/rsync/support/Makefile
/usr/share/doc/rsync/support/atomic-rsync
/usr/share/doc/rsync/support/cvs2includes
/usr/share/doc/rsync/support/deny-rsync
/usr/share/doc/rsync/support/file-attr-restore
/usr/share/doc/rsync/support/files-to-excludes
/usr/share/doc/rsync/support/git-set-file-times
/usr/share/doc/rsync/support/instant-rsyncd
/usr/share/doc/rsync/support/logfilter
/usr/share/doc/rsync/support/lsh
/usr/share/doc/rsync/support/lsh.sh
/usr/share/doc/rsync/support/mapfrom
/usr/share/doc/rsync/support/mapto
/usr/share/doc/rsync/support/mnt-excl
/usr/share/doc/rsync/support/munge-symlinks
/usr/share/doc/rsync/support/rrsync
/usr/share/doc/rsync/support/rsync-no-vanished
/usr/share/doc/rsync/support/rsync-slash-strip
/usr/share/doc/rsync/support/rsyncstats
/usr/share/doc/rsync/support/savetransfer.c
/usr/share/doc/rsync/tech_report.tex
/usr/share/licenses/rsync
/usr/share/licenses/rsync/COPYING
/usr/share/man/man1/rsync.1.gz

References

Summary

In this tutorial we learn how to install rsync on Rocky Linux 8 using yum and dnf.