The Cloud Assistant client is an agent that runs Cloud Assistant commands on Elastic Compute Service (ECS) instances. This topic describes how to upgrade and disable upgrades for the Cloud Assistant client.

Prerequisites

The Cloud Assistant client is installed. For more information, see Install the Cloud Assistant client.

Automatic upgrade

The Cloud Assistant client automatically runs the aliyun_assist_update upgrade process every hour, which is located in the following path:
  • Windows instances: C:\ProgramData\aliyun\assist\${version}/aliyun_assist_update
  • Linux instances: /usr/local/share/aliyun-assist/${version}/aliyun_assist_update

Manual upgrade

If the automatic upgrade fails, you can create an upgrade command and run the command on a regular basis. For more information, see Create a command.

If you are using an RPM installation package, you can run the following Cloud Assistant command to upgrade the Cloud Assistant client. For information about the upgrade commands for other installation packages, see Install the Cloud Assistant client.
wget "https://aliyun-client-assist.oss-accelerate.aliyuncs.com/linux/aliyun_assist_latest.rpm" && rpm -ivh --force aliyun_assist_latest.rpm

Manually disable upgrades

You can disable upgrades for the Cloud Assistant client by disabling the aliyun_assist_update automatic upgrade process.

  • Run the following command in PowerShell if the instance on which the Cloud Assistant client is installed runs a Windows Server operating system:
    Rename-Item -Path 'C:\ProgramData\aliyun\assist\${version}\aliyun_assist_update.exe' -NewName 'C:\ProgramData\aliyun\assist\${version}\aliyun_assist_update.exe.bk'
  • Run the following command if the instance on which the Cloud Assistant client is installed runs a Linux operating system:
    chmod a-x aliyun_assist_update