离线更新服务器curl工具

  1. 在官网上https://curl.haxx.se/download.html获取最新版本的url
  2.  下载最新版本到本地

    curl - Download

  1. 安装编译工具
yum install libtool
yum install make
yum install autoconf
  1. 编译
tar -xvf curl-*.tar.gz
cd curl-*
./buildconf
./configure --with-ssl
make
sudo make install
cp /usr/local/bin/curl /usr/bin/cur
  1. 结果
curl -V

curl 7.85.0 (aarch64-unknown-linux-gnu) libcurl/7.85.0 OpenSSL/1.0.2k-fips zlib/1.2.7
Release-Date: 2022-08-31
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 UnixSockets

 

curl - Download
posted @ 2022-09-28 15:38  安培昌浩  阅读(356)  评论(0编辑  收藏  举报