curl 升级
检测 curl 当前版本
1
2
3
4
5
6curl -V
#当前版本为 7.29.0
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.11 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets版本升级
1
2
3
4
5
6
7
8
9cd /opt
wget --no-check-certificat https://curl.se/download/curl-7.81.0.tar.gz
tar -zxvf curl-7.81.0.tar.gz
cd curl-7.81.0
./configure --with-openssl=/opt/openssl-1.1.1m
make
make install
mv /usr/bin/curl /usr/bin/curl.old.20220113
ln -s /usr/local/bin/curl /usr/bin/curl检测升级后 curl 版本
1
2
3
4
5
6
7curl -V
#当前版本为 7.81.0
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/1.1.1m zlib/1.2.11
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets