- Product Bulletin
- Service Overview
-
User Guide
- Usage Overview
- Selecting HCE as the Public Image When Creating an ECS
- Changing an OS to HCE
- Migrating an OS
- Upgrading HCE and RPM Packages
- Security Updates for HCE
- Obtaining the openEuler Extended Software Packages
- Creating a Docker Image and Starting a Container
- Tools
- Kernel Functions and Interfaces
- xGPU
- Configuring the Repositories and Installing Software for HCE
-
FAQs
- What Do I Do If CentOS Linux Is No Longer Maintained?
- Does Huawei Cloud Have a Migration Solution for CentOS?
- How Do I Install the MLNX Driver?
- How Do I Enable SELinux on an ECS Running HCE?
- How Do I Change the OS Name on the Console After the OS Is Migrated?
- How Are Huawei Cloud EulerOS, EulerOS, and openEuler Different from One Another?
- How Do I Enable WireGuard in Kernel and Install wireguard-tools?
- How Do I Save the User Credential Information for Logging In to Docker Like What Docker CE Does?
- What Is OOM? Why Does OOM Occur?
- How Do I Handle IPVS Errors?
- Why Can't HCE Obtain an IPv6 Address After IPv6 Is Enabled for an ECS?
- How Do I Set Auto Log Using TMOUT?
- Best Practices
- General Reference
Show all
Copied.
Manual Update Using osmt update
- Update the RPM packages using the filters field in the configuration file.
osmt update --auto --reboot_config [Restart configuration]
Table 1 Restart parameter description Value
Description
never
Does not restart the OS after the update. If the reboot parameter is not configured or its value is set to never, the OS will also not restart after the update.
This way, RPM packages in the need_reboot_rpms list will not be updated. To update them, run the following commands to set filters to whitelist and add the packages to the whitelist: (The update is only applied after a restart.)
osmt config -k filters -v "whitelist"
osmt config -k whitelist -v "rpm1, rpm2, rpm3"
always
Updates the RPM packages (including the packages in need_reboot_rpms) and restart the OS immediately after the update.
<specific time>
Updates the RPM packages (including the packages in need_reboot_rpms) and restart the OS at the specified time, for example "2020-02-02 2:02:02".
- Update the RPM packages using the whitelist and blacklist.
osmt update --pkgs [rpm1 rpm2 rpm3 ... ] --exclude_pkgs [rpm4 rpm5 rpm6 ... ] --reboot_config [Restart configuration]
- --pkgs: (optional) specifies the whitelisted packages to be updated. Multiple packages are separated by spaces.
For example, run the following command to update the hce-logos, hce-lsb, and tomcat whitelisted packages:
osmt update --pkgs hce-logos hce-lsb tomcat
- --exclude_pkgs: (optional) specifies the blacklisted packages that will not be updated. Multiple packages are separated by spaces.
For example, run the following command to not update the ongres-scram and llvm-static blacklisted packages:
osmt update --exclude_pkgs ongres-scram llvm-static
- --reboot_config [Restart configuration]: (optional) configures the restart method. The value can be always, never, or a specific restart time.
- always: restarts the OS after the update if some package updates are only applied after a restart. If there are no such packages, the OS will not restart.
- never: does not restart the OS after the update.
- <specific time>: specifies a specific restart time. If some package updates are only applied after a restart, the OS will restart at the specified time after the update. The restart time is in the format of "2020-02-02 2:02:02". If there are no such packages, the OS will not restart.
NOTE:
- If you update packages using the blacklist or whitelist, specify at least one of --pkgs and --exclude_pkgs.
- The blacklist and whitelist specified in the command are applied, and those defined in the configuration file will not.
- --pkgs: (optional) specifies the whitelisted packages to be updated. Multiple packages are separated by spaces.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot