You will mostly find that the latest version is not available in the repositories. For example, when I was setting up my new Orange Pi with Ubuntu 22.04, the repository only had version 3.9.x available. While this version may be fine for some users, for unknown reasons, it was not updating Cloudflare entries for me. Then I decided to install the latest DDclient and see if that fixed the issue for me, and it actually did. So, let me show you how to install the latest DDclient.
If you have set up Nextcloud on your Raspberry Pi following this guide and would like to access it outside your home or local network, the easiest way is to use DDNS (Dynamic DNS) with Cloudflare. You can use any other provider supported by DDclient, but we will use Cloudflare in this article. So read on how to set up Dynamic DNS on Raspberry Pi with Cloudflare.