How does one install an older version of the curl script in order to recover to php 7.4 and Nextcloud 22?

Continuing the discussion from »This version of Nextcloud is not compatible with > PHP 8.0.« using nextcloudpi:

Unsure of any documentation on how to do this, if possible.

How does one install an older or specific version of the curl script in order to recover to php 7.4 and Nextcloud 22?

I trust in @Vincent_Stans

Sounds reasonable - however I didn’t test it