Subscription management
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 supported only in the Chinese mainland and the China (Hong Kong) region.
-
Operating system restrictions
Architecture
Operating system
x86
-
Alibaba Cloud Linux 2
-
CentOS 7.6 and later
-
Anolis 7.x
-
Prerequisites
-
If you use a RAM user, make sure that the Alibaba Cloud account (primary account) has granted the RAM user the
AliyunECSReadOnlyAccess,AliyunSubManageFullAccess, andAliyunSysomFullAccesssystem policies. -
The console permissions are activated.
The first time you log on to the Operating System Console, click Activate Service to activate the console service.
-
The ECS instance is running, and the Cloud Assistant agent is installed.
Create a subscription item
-
Go to Operating System Console.
-
Install SysOM on the target ECS 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.
-
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.