All Products
Search
Document Center

Alibaba Cloud Linux:Install and enable a later version of curl

Last Updated:Apr 01, 2026

Alibaba Cloud Linux 2 ships with curl 7.29.0 by default. If your workload requires curl 7.61.1, install it from the Alibaba Cloud experimentals repository — a separate software collection that runs alongside the system curl without replacing it.

How it works

Alibaba Cloud Linux 2 does not support in-place curl upgrades to avoid breaking system components that depend on the default version. Instead, curl 7.61.1 is packaged as the httpd24 software collection and installed under /opt/rh/httpd24/, isolated from the system-wide curl binary. You activate it per shell session using a source command.

Prerequisites

Before you begin, ensure that you have:

  • An Alibaba Cloud Linux 2 instance

  • sudo privileges on the instance

Install and activate curl 7.61.1

  1. Install the Alibaba Cloud experimentals repository.

    sudo yum install -y alinux-release-experimentals
  2. Install httpd24-curl and its development library.

    sudo yum install -y httpd24-curl
    sudo yum install -y httpd24-libcurl-devel
  3. Activate curl 7.61.1 in the current shell session.

    Note

    This command activates curl 7.61.1 only for the current shell session. Opening a new terminal or rebooting the instance reverts to the system default (7.29.0). To activate curl 7.61.1 automatically, add the source command to your shell profile (for example, ~/.bashrc).

    source /opt/rh/httpd24/enable
  4. Verify the installed version.

    curl --version

    The output confirms that curl 7.61.1 is active. al2-curl