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.
- 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