Server Upgrade
Before running the upgrade command, it is required to upgrade the mgradm tool first.
Refresh software repositories with
zypper:zypper refApply available updates:
For SLE Micro:
transactional-updateIf updates were applied,
reboot.For SUSE Linux Enterprise Server:
zypper upThe SUSE Manager Server container can be updated using the following command:
Risk of Automated Version Downgrade and PTF Loss
Running the
mgradm upgrade podmancommand when no newer upgrade is available will cause the system to automatically revert to the base version. This process removes all currently applied Program Temporary Fixes (PTFs) without a confirmation prompt.To avoid unintended data or fix loss, verify upgrade availability before execution. Future releases will include a confirmation prompt to prevent this behavior.
mgradm upgrade podmanThis command will bring the status of the container up-to-date and restart the server.
Clean up the unused container images to free disk space:
podman image prune -aCheck for
*.rpmnewand*.rpmsavefiles inside the container:mgrctl exec 'find /etc/ -name "*.rpmnew" -o -name "*.rpmsave"'
When an upgrade includes changes to a default configuration file that has been altered after package installation, instead of overwriting the file, one of these file types is created:
*.rpmnew: contains the new default configuration and leaves your altered file untouched
*.rpmsave: a copy of your altered configuration that has been replaced by the new default fileIf you find any
*.rpmnewor*.rpmsavefiles, examine their content and merge desirable changes.
|
Upgrading to specific version
If you do not specify the tag parameter, it will default to upgrading to the most recent version. To upgrade to a specific version, provide the tag parameter with the desired image tag. |
For more information on the upgrade command and its parameters, use the following command:
|
Risk of Automated Version Downgrade and PTF Loss Running the To avoid unintended data or fix loss, verify upgrade availability before execution. Future releases will include a confirmation prompt to prevent this behavior. |
mgradm upgrade podman -h
For air-gapped installations, first upgrade the container RPM packages, then run the mgradm command.