How to install CURL on Alpine Linux – Guide
Curl is a command line URL retrieval utility and library (download/upload). It is free software for Alpine Linux.
Installing curl in Alpine
- Open the terminal application. For the remote server, use the ssh command for login purposes. For example: ssh user @ alpine-ec2-server 2.Update the apk database indexes of all configured packages. Run: apk update
- Apply all pending security updates to Alpine Linux, type: apk update
- Look for curl packages in Alpine: apk search curl
- Let us see known information about the listed packages called curl: apk -a info cur apk -v info curl
- Finally, install the curl package on Alpine Linux: apk add curl
Discovering the version of curl
We should check the installation of curl and others featured. So, type the following command to see the installed version: curl – version curl 7.74.0 (x86_64-alpine-linux-musl) libcurl / 7.74.0 OpenSSL / 1.1.1j zlib / 1.2.11 brotli / 1.0.9 nghttp2 / 1.42.0 Release date: 12-09-2020 Protocols: dict file ftp ftps gopher http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS brotli HTTP2 HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets The above command has successfully verified that curl has been installed on my Alpine Linux laptop.
Installing curl documentation and man pages
Use apk command:
apk add curl-doc (1/1) Installing curl-doc (7.74.0-r1) Running mandoc-apropos-1.14.5-r5.trigger OK: 1109 MiB in 249 packages
Now use the man command:
man curl
Final note
I hope you like the guide How to install CURL on Alpine Linux. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.