[CentOS] Version of curl does not support session resumption

Thu Oct 28 21:04:49 UTC 2021
Steve Meier <email at steve-meier.de>

Hello Joscha,

Am 2021-10-28 16:30, schrieb Joscha Knobloch:
> 
> Is curl going to be updated to support ftps session resumption in the
> near future? If not: What would be the best way to get a newer version
> onto the system?

the point of RHEL / CentOS is to provide stability, so packages are 
generally
not updated to newer versions. So cURL for CentOS 7 will remain as is.

It's fairly simple to build yourself a newer cURL binary though:

$ wget 
https://github.com/curl/curl/releases/download/curl-7_79_1/curl-7.79.1.tar.gz
$ tar xzf curl-7.79.1.tar.gz
$ cd curl-7.79.1
$ ./configure --with-openssl
$ make
$ src/curl -V
curl 7.79.1 (x86_64-pc-linux-gnu) libcurl/7.79.1 OpenSSL/1.0.2k-fips 
zlib/1.2.7 zstd/1.5.0 libidn2/2.3.0 OpenLDAP/2.4.44
Release-Date: 2021-09-22
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap 
ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IDN IPv6 Largefile libz 
NTLM NTLM_WB SSL UnixSockets zstd

You can use a packager such as togo to roll your own RPM:
https://github.com/genereese/togo

Alternatively, you can just put the new binary into /usr/local/bin, 
update
your scripts to use that curl instead of the one in /usr/bin and call it 
a day.

Remember though, using your own cURL means you will no longer get 
security updates,
so you may want to subscribe to their mailing-list to get notified when 
an update
is recommended.

Kind regards,
   Steve