How to Install CURL 7.8 support HTTP2 on CentOS 7 and CentOS Stream 8

How to Install CURL 7.8 support HTTP 2 on CentOS 7

curl is used in command lines or scripts to transfer data. curl is also used in cars, television sets, routers, printers, audio equipment, mobile phones, tablets, settop boxes, media players and is the Internet transfer engine for thousands of software applications in over ten billion installations.

curl is used daily by virtually every Internet-using human on the globe.

curl support

DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, HTTP/3, cookies, user+password authentication (Basic, Plain, Digest, CRAM-MD5, SCRAM-SHA, NTLM, Negotiate and Kerberos), file transfer resume, proxy tunneling and more.

The problem is curl on CentOS 7 does not support HTTP2.

Installing CURL 7.8 support HTTP 2 on CentOS 7

# rpm -Uvh
# yum install -y yum-utils
# yum-config-manager --disable
# yum install libcurl libcurl-devel curl

Installing CURL 7.8 support HTTP 2 on CentOS Stream 8

# rpm -Uvh
# dnf install -y yum-utils
# dnf-config-manager --disable
# dnf install libcurl libcurl-devel curl

If repo URL down not work or 404 not found, may be repo has been updated. You can go to and find right version for your OS.

After update curl, you can check with command:

# curl -V

curl 7.84.0 (x86_64-redhat-linux-gnu) libcurl/7.84.0 NSS/3.67 zlib/1.2.7 libpsl/0.20.2 (+libidn2/2.3.2) libssh2/1.10.0 nghttp2/1.33.0 OpenLDAP/2.4.44
Release-Date: 2022-06-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL UnixSockets
CURL 7.8 support HTTP2 on CentOS 7
CURL 7.8 support HTTP2 on CentOS 7



Leave a Reply

Your email address will not be published. Required fields are marked *