Overview
You can install a custom version of curl (command line tool) on your DreamHost server. curl is installed on all DreamHost servers by default, but you may wish to install a newer version depending on your needs.
These instructions explain how to install the curl command line tool, which is different from cURL. See this article to learn more about the differences between curl and cURL.
How do I install curl?
Log in to your server via SSH.
Make sure you're in your user's home directory:
[server]$ cd ~
Locate the version you wish to install.
Right-click a .zip link and copy its URL. You can then run the following
wgetcommand to download the .zip file:[server]$ wget https://curl.se/download/curl-8.3.0.zip
Unzip the file:
[server]$ unzip curl-8.3.0.zip
Navigate into this new directory:
[server]$ cd curl-8.3.0
Run the following to install:
curl requires you to choose which SSL library you'd prefer to use when building it. These instructions use openssl. View SELECT YOUR TLS for further details.
[server]$ ./configure --prefix=$HOME/curl --with-openssl [server]$ make [server]$ make install
Open your .bash_profile using nano or vim. For example:
nano ~/.bash_profile
Add this line to your .bash_profile:
export PATH=$HOME/curl/bin:$PATH
Update your .bash_profile to activate your new configuration:
[server]$ . ~/.bash_profile
Check the location and version of curl:
[server]$ which curl /home/username/curl/bin/curl [server]$ curl --version curl 8.3.0 (x86_64-pc-linux-gnu)