Z
Z
Zimaell2019-09-25 12:22:26
ubuntu
Zimaell, 2019-09-25 12:22:26

How to install the latest version of curl?

On two servers, the same code with curl on php works differently, I concluded that the problem is in the curl version itself, so I did curl -V on the servers

curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2g zlib/1.2.11 libi                                                                           dn2/0.16 libpsl/0.17.0 (+libidn2/0.16) librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s                                                                            rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL                                                                            libz TLS-SRP UnixSockets HTTPS-proxy PSL

curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

On the first one everything works, on the second one it doesn't, as I see it on the 2nd version is older, so I decided to update it, but here's how to do it?
Tried
sudo apt-get install php-curl
sudo apt-get install curl

does not help, tell me how to update to the latest version?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2019-09-25
@Zimaell

apt-get update
apt-get upgrade

Update everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question