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 the
AliyunECSReadOnlyAccess,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
Go to theoperating system console.
Install SysOM on the target instance.
-
In the left-side navigation pane, click Subscription Management.
-
On the Subscription Management page, click Create Subscription.
-
Select the Subscription Content, select the target instances, and then click Next.
-
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.
Go to theSubscription Management page in the operating system console.
-
On the Subscription Management page, find the subscription that you want to cancel and click Unsubscribe in the Actions column.
NoteYou 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.