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
sudoprivileges on the instance
Install and activate curl 7.61.1
Install the Alibaba Cloud experimentals repository.
sudo yum install -y alinux-release-experimentalsInstall
httpd24-curland its development library.sudo yum install -y httpd24-curl sudo yum install -y httpd24-libcurl-develActivate curl 7.61.1 in the current shell session.
NoteThis 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
sourcecommand to your shell profile (for example,~/.bashrc).source /opt/rh/httpd24/enableVerify the installed version.
curl --versionThe output confirms that curl 7.61.1 is active.
