Subscription management

更新时间:
复制 MD 格式

A subscription grants an ECS instance access to an Alibaba Cloud private yum repository. The subscription management feature lets you view the subscription status of your ECS instances and create subscription items for them.

Limitations

  • Region restrictions

    This feature is available only in the Chinese mainland and China (Hong Kong) regions.

  • Operating system restrictions

    Architecture

    Operating system

    x86

    • Alibaba Cloud Linux 2

    • CentOS 7.6 and later

    • Anolis 7.x

Prerequisites

  • If you are a RAM user, the Alibaba Cloud account (main account) must have granted you theAliyunECSReadOnlyAccess,AliyunSubManageFullAccess, andAliyunSysomFullAccesssystem policies.

  • The console service is enabled.

    The first time you log on to the operating system console, click Enable Service to enable the service.

  • The ECS instance is running, and the Cloud Assistant agent is installed.

Create a subscription item

CentOS 7 security updates

  • Only ECS instances that use a CentOS 7.9 series image appear in the instance list when you create a subscription.

  • Instances with an image version earlier than 7.6 do not support subscriptions.

  • If your ECS instance has an image version from 7.6 up to 7.9, follow these steps to upgrade it to version 7.9.

    1. Run the following command to upgrade the system.

      Note

      The upgrade process updates a large number of RPM packages. Evaluate the impact before you proceed.

      yum update

      Entery and press the Enter key to complete the upgrade.

    2. Check the version after the upgrade.

      cat /etc/centos-release

      The output is similar to the following:

      [root@iZbp1xxxm2y3mdbZ ~]# cat /etc/centos-release
      CentOS Linux release 7.9.2009 (Core)
    3. On the Component Management page of the operating system console, install the SysOM component. If the component was installed before you upgraded the operating system, you must firstuninstall the component and thenreinstall the component to update the release data.

  1. Go to theoperating system console.

  2. Install SysOM on the target instance.

  3. In the left-side navigation pane, click Subscription Management.

  4. On the Subscription Management page, click Create Subscription.

  5. Select the Subscription Content, select the target instances, and then click Next.

  6. After the dependency check passes, click Create.

    If the Status is Failed, install the required dependencies as instructed in the Description column.

Access the subscription repository

After you create the subscription, you can useyum/dnf commands to access the correspondingyum repository.

To view the addedyum repositories, run the following command:

yum repolist

Unsubscribe

You can unsubscribe from each subscription individually.

  1. Go to theSubscription Management page in the operating system console.

  2. On the Subscription Management page, find the subscription that you want to cancel and click Unsubscribe in the Actions column.

    Note

    You can click an ID in the Subscription ID column to view its details.

Next steps

After you subscribe, the system does not automatically fix vulnerabilities or perform package updates. You must perform these operations manually. For information about how to use YUM to query, check for, and install operating system security updates, see Perform security updates by using YUM.