Installing a custom version of curl

Overview

curl is installed on all SiSrv servers by default; however, you may want to install a newer version depending on your needs. This article walks you through how to install a custom version of curl (command line tool).

These instructions explain how to install the curl command line tool which is different from cURL. View the following article for more information:

Installing curl

Log in to your server via SSH.

Make sure you're in your user's home directory.

cd ~

Locate the version you wish to install here:

Right-click a .zip link and copy its URL. You can then run the following wget command to download the .zip file.

wget https://curl.se/download/curl-8.9.0.zip

Unzip the file.

unzip curl-8.9.0.zip
rm -rf curl-8.9.0.zip

Navigate into this new directory.

cd curl-8.9.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.

./configure --prefix=$HOME/curl --with-openssl
make
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

. ~/.bash_profile

Check the location and version of curl:

which curl
/home/username/curl/bin/curl
curl --version
curl 8.9.0 (x86_64-pc-linux-gnu)

 

  • 18 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

How to Set Up a Mac for Your Kids

Providing children with access to a computer and the internet is increasingly important, but so...

How to Get Help With a Command from the Linux Terminal

Whether you’re an inexperienced terminal user or a grizzled veteran, you won’t always know the...

How to change the ssh port on Linux

To Change the SSH Port for Linux Server Connect to your server via SSH Switch to the root...

How To Install screenFetch in Linux

If you've browsed Linux groups on social media, you've probably seen a lot of screenshots that...

Static IP vs. Dynamic IP Address

A static IP address is one that remains fixed and never changes. The PC always sees the same...

Powered by WHMCompleteSolution