I want to isntall rsync 3.2.7 on Ubuntu 20.04 - however I'm not sure if that's possible; currently I have 3.1.3 installed on the system (which is installed by default).
I found this question but it only mentions 3.2.3 which doesn't interest me.
Trying to install 3.2.7 from deb package intended for 22.04 obviously failed
After ~1h or researching I couldn't find any way nor information that would point me to the solution on how to install 3.2.7 or if that's even possible.
It is possible to add a repo and install it from there but the issue is that the repos are created for later releases of Ubuntu such as 22.04 and 22.10. Most of time time, you'll be okay but it's the one time where it installs or updates packages that aren't in line with what is supported by the repos for your release and you end up in dependency hell.
The best option is to compile it from source.
The source code for
rsync 3.2.7
is here: https://github.com/WayneD/rsync/releases/tag/v3.2.7You will need to make sure that build essential is installed for the compiler tools. Afterwards, prepend the directory of the
rsync 3.2.7
binary to your$PATH
via one of your shell init files so that it is there at login and then source it or start a new shell session or useexport PATH=/path/to/rsync/bi/:$PATH
for it to take effect immediately. This will give you what you need while avoiding dependency hell by adding a repo with later packages.What I would do:
Edit
/etc/apt/sources.list.d/official-package-repositories.list
or/etc/apt/sources.list
(backup it before).Substitute all occurrences of
fridge
tojammy
.Then run
Then if
apt
is not trying to upgrade the whole system, should be ago
.After this, restore backup file(s), then run again
apt update
.Or maybe consider upgrading to
jammy
.