Book-Sle-Upgrade Color en PDF
Book-Sle-Upgrade Color en PDF
Book-Sle-Upgrade Color en PDF
This book guides you through upgrades and updates of SUSE Linux Enterprise Serv-
er. Different approaches are described, for example upgrading from an installation
DVD, via network boot, or a running system.
SUSE LLC
10 Canal Park Drive
Suite 200
Cambridge MA 02141
USA
https://www.suse.com/documentation
Copyright © 2006– 2020 SUSE LLC and contributors. All rights reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Docu-
mentation License, Version 1.2 or (at your option) version 1.3; with the Invariant Section being this copyright
notice and license. A copy of the license version 1.2 is included in the section entitled “GNU Free Documentation
License”.
For SUSE trademarks, see http://www.suse.com/company/legal/ . All other third-party trademarks are the prop-
erty of their respective owners. Trademark symbols (®, ™ etc.) denote trademarks of SUSE and its affiliates.
Asterisks (*) denote third-party trademarks.
All information found in this book has been compiled with utmost attention to detail. However, this does not
guarantee complete accuracy. Neither SUSE LLC, its affiliates, the authors nor the translators shall be held liable
for possible errors or the consequences thereof.
Contents
4 Upgrading Offline 25
4.1 Conceptual Overview 25
iv Upgrade Guide
5 Upgrading Online 33
5.1 Conceptual Overview 33
A GNU Licenses 51
A.1 GNU Free Documentation License 51
v Upgrade Guide
About This Guide
There are different ways to upgrade SUSE Linux Enterprise Server. It is impossible to cover all
combinations of boot, or installation server, automated installations or deploying images. This
manual should help with selecting the appropriate method of upgrading your installation.
Upgrade Guide
This part will give you some background information on terminology, SUSE product life-
cycles and Service Pack releases, and recommended upgrade policies.
1 Available Documentation
2 Giving Feedback
Your feedback and contribution to this documentation is welcome! Several channels are avail-
able:
Bug Reports
Report issues with the documentation at https://bugzilla.suse.com/ . To simplify this
process, you can use the Report Documentation Bug links next to headlines in the HTML ver-
sion of this document. These preselect the right product and category in Bugzilla and add
a link to the current section. You can start typing your bug report right away. A Bugzilla
account is required.
Contributions
To contribute to this documentation, use the Edit Source links next to headlines in the
HTML version of this document. They take you to the source code on GitHub, where you
can open a pull request. A GitHub account is required.
For more information about the documentation environment used for this doc-
umentation, see the repository's README (https://github.com/SUSE/doc-sle/blob/mas-
ter/README.adoc) .
Mail
Alternatively, you can report errors and send feedback concerning the documentation to
[email protected] . Make sure to include the document title, the product version and
the publication date of the documentation. Refer to the relevant section number and title
(or include the URL) and provide a concise description of the problem.
Alt , Alt – F1 : a key to press or a key combination; keys are shown in uppercase as on
a keyboard
x86_64 This paragraph is only relevant for the AMD64/Intel 64 architecture. The arrows
mark the beginning and the end of the text block.
System z, POWER This paragraph is only relevant for the architectures IBM Z and POWER .
The arrows mark the beginning and the end of the text block.
Commands that must be run with root privileges. Often you can also prefix these com-
mands with the sudo command to run them as non-privileged user.
root # command
tux > sudo command
Notices
SUSE Linux Enterprise Server has a 13-year life cycle: 10 years of general support and
three years of extended support.
SUSE Linux Enterprise Desktop has a 10-year life cycle: seven years of general support and
three years of extended support.
Major releases are published every four years. Service packs are published every 12-14
months.
SUSE supports previous SUSE Linux Enterprise service packs for six months after the release
of a new service pack.
L1
Problem determination, which means technical support designed to provide compatibility
information, usage support, ongoing maintenance, information gathering and basic trou-
bleshooting using available documentation.
L2
Problem isolation, which means technical support designed to analyze data, reproduce
customer problems, isolate problem area and provide a resolution for problems not re-
solved by Level 1 or prepare for Level 3.
L3
Problem resolution, which means technical support designed to resolve problems by en-
gaging engineering to resolve product defects which have been identified by Level 2 Sup-
port.
For contracted customers and partners, SUSE Linux Enterprise Server is delivered with L3 sup-
port for all packages, except for the following:
Technology Previews
Packages with names ending in -devel (containing header les and similar developer
resources) will only be supported together with their main packages.
SUSE will only support the usage of original packages. That is, packages that are unchanged
and not recompiled.
Technology previews are still in development. Therefore, they may be functionally incom-
plete, unstable, or in other ways not suitable for production use.
Details and functionality of technology previews are subject to change. As a result, up-
grading to subsequent releases of a technology preview may be impossible and require a
fresh installation.
Technology previews can be dropped at any time. For example, if SUSE discovers that a
preview does not meet the customer or market needs, or does not prove to comply with
enterprise standards. SUSE does not commit to providing a supported version of such tech-
nologies in the future.
For an overview of technology previews shipped with your product, see the release notes at
https://www.suse.com/releasenotes/ .
SUSE® Linux Enterprise (SLE) allows to upgrade an existing system to the new ver-
sion, for example, going from SLE 12 SP4 to the latest SLE 15 service pack. No new
installation is needed. Existing data, such as home and data directories and system
configuration, is kept intact. You can update from a local CD or DVD drive or from
a central network installation source.
This chapter explains how to manually upgrade your SUSE Linux Enterprise system,
be it by DVD, network, an automated process, or SUSE Manager.
Leap
Leap15
15 SLES
SLES15
15 SLES
SLES15
15SP1
SP1
SLES
SLES12
12GA
GA SLES
SLES12
12SP1
SP1 SLES
SLES12
12SP2
SP2 SLES
SLES12
12SP3
SP3 SLES
SLES12
12SP4
SP4
Online
Upgrades that are executed from the running operating system itself (system up and run-
ning state). Examples: online update with Zypper or YaST, connected through SUSE Cus-
tomer Center or Repository Mirroring Tool (RMT), Salt Policy via SUSE Manager.
For details, see Chapter 5, Upgrading Online.
When migrating between Service Packs of the same major release, we suggest following
Section 5.4, “Upgrading with the Online Migration Tool (YaST)” or Section 5.5, “Upgrading with Zyp-
per”.
Offline
Upgrading offline implies that the operating system to be upgraded is not running (system
down state). Instead, the installer for the target operating system is booted (for example,
from the installation media, via network or via local boot loader), and performs the up-
grade.
For details, see Chapter 4, Upgrading Offline.
2.1 Terminology
This section uses several terms. To understand the information, read the definitions below:
Backporting
Backporting is the act of adapting specific changes from a newer version of software and
applying it to an older version. The most commonly used case is fixing security holes
in older software components. Usually it is also part of a maintenance model to supply
enhancements or (less commonly) new features.
Delta RPM
A delta RPM consists only of the binary di between two defined versions of a package,
and therefore has the smallest download size. Before being installed, the full RPM package
is rebuilt on the local machine.
Downstream
A metaphor of how software is developed in the open source world (compare it with up-
stream). The term downstream refers to people or organizations like SUSE who integrate the
source code from upstream with other software to build a distribution which is then used
by end users. Thus, the software ows downstream from its developers via the integrators
to the end users.
Extensions,
Add-On Products
Extensions and third party add-on products provide additional functionality of product
value to SUSE Linux Enterprise Server. They are provided by SUSE and by SUSE partners,
and they are registered and installed on top of the base product SUSE Linux Enterprise
Server.
LTSS
LTSS is the abbreviation for Long Term Service Pack Support, which is available as an
extension for SUSE Linux Enterprise Server.
Migration
Updating to a Service Pack (SP) by using the online update tools or an installation medium
to install the respective patches. It updates all packages of the installed system to the latest
state.
Migration Targets
Set of compatible products to which a system can be migrated, containing the version of
the products/extensions and the URL of the repository. Migration targets can change over
time and depend on installed extensions. Multiple migration targets can be selected, for
example SLE 15 SP1 and SES6.
Modules
Modules are fully supported parts of SUSE Linux Enterprise Server with a different life
cycle. They have a clearly defined scope and are delivered via online channel only. Regis-
tering at the SUSE Customer Center, RMT (Repository Mirroring Tool), or SUSE Manager
is a prerequisite for being able to subscribe to these channels.
Package
A package is a compressed le in rpm format that contains all les for a particular program,
including optional components like configuration, examples, and documentation.
Patch
A patch consists of one or more packages and may be applied by means of delta RPMs. It
may also introduce dependencies to packages that are not installed yet.
Update
Installation of a newer minor version of a package, which usually contains security or bug
fixes.
Upgrade
Installation of a newer major version of a package or distribution, which brings new features.
For a distinction between the upgrade options, see Section 1.2, “Online and Offline Upgrade”.
SUSE Linux Enterprise Server has a 13-year lifecycle: 10 years of general support and three
years of extended support.
SUSE Linux Enterprise Desktop has a 10-year lifecycle: seven years of general support and
three years of extended support.
Major releases are made every four years. Service packs are made every 12-14 months.
SUSE supports previous service packs for six months after the release of the new service pack.
Figure 2.1, “Major Releases and Service Packs” depicts some mentioned aspects.
SP3
SP2
SP1
GA
SLES 12 SP5
6 month overlap
SP4
SP3
SP2
SP1
GA
TIME
If you need additional time to design, validate and test your upgrade plans, Long Term Service
Pack Support can extend the support you get by an additional 12 to 36 months in 12-month
increments. This gives you a total of 2 to 5 years of support on any service pack. For details,
see Figure 2.2, “Long Term Service Pack Support”.
SLES 12 SP5
SP4
SP3
SP2 Last Service Pack: General Support
up to GA + 10 years
SP1
GA
Long Term Service Pack Support (LTSS), up to 3 years
TIME
The recipient and subject of the report e-mail, and the report generation period can be configured
in the le /etc/sysconfig/lifecycle-report with any text editor. The settings MAIL_TO
and MAIL_SUBJ define the mail recipient and subject, while DAYS sets the interval at which
the report is generated.
The report displays changes in the support status after the change occurred and not in advance.
If the change occurs right after the generation of the last report, it can take up to 14 days until
you are notified of the change. Take this into account when setting the DAYS option. Change
the following configuration entries to t your requirements:
MAIL_TO='root@localhost'
MAIL_SUBJ='Lifecycle report'
DAYS=14
The latest report is available in the le /var/lib/lifecycle/report . The le contains two
sections. The rst section informs about the end of support for used products. The second section
lists packages with their support end dates and update availability.
Feature Year 1-5 Year 6-7 Year 8-10 Year 4-10 Year 10-13
Feature Year 1-5 Year 6-7 Year 8-10 Year 4-10 Year 10-13
Feature Year 1-5 Year 6-7 Year 8-10 Year 4-10 Year 10-13
This gives you a list of all available repositories on your system. Each repository is listed by its
alias, name and whether it is enabled and will be refreshed. The option -u gives you also the
URI from where it originated.
To register your machine, run SUSEConnect, for example:
To check your locally installed products and their status, use the following command:
root # SUSEConnect -s
Before starting the upgrade procedure, make sure your system is properly prepared.
Among others, preparation involves backing up data and checking the release notes.
The release notes also provide information that could not make it into the manual on time. They
also contain notes about known issues.
If you are skipping one or more Service Packs, check the release notes of the skipped Service
Packs as well. The release notes usually only contain the changes between two subsequent re-
leases. You can miss important changes if you are only reading the current release notes.
Find the current release notes online at https://www.suse.com/releasenotes/ .
Alternatively, nd the release notes on the installation DVD in the docu directory.
Also create a le named installed-software.bak containing a list of all installed packages:
Back up both les. The repositories and installed packages can be restored with the following
commands:
Packages were split to allow a more ne-grained package selection. For example,
37 texlive packages on SLE 11 were split into over 3000 packages on SLE 15.
When a package has been split, all new packages are installed in the upgrade case
to retain the same functionality as with the previous version. However, the new
default for a fresh installation of SLE X+1 may be to not install all packages.
3. Store your dump le, the configuration le /etc/my.cnf , and the directory /etc/
mysql/ for later investigation (not installation!) in a safe place.
4. Perform your upgrade. After the upgrade, your former configuration le /etc/my.cnf is
still intact. You can nd the new configuration in the le /etc/my.cnf.rpmnew .
5. Configure your MariaDB database to your needs. Do not use the former configuration le
and directory, but use it as a reminder and adapt it.
If you want to start the MariaDB server on every boot, enable the service:
The program les for each PostgreSQL version are stored in different, version-dependent di-
rectories. For example, in /usr/lib/postgresql96/ for version 9.6 and in /usr/lib/post-
gresql10/ for version 10. Note that the versioning policy of PostgreSQL has changed between
the major versions 9.6 and 10. For details, see https://www.postgresql.org/support/versioning/ .
The procedure below describes the database migration from version 9.6 to 10. When using a
different version as start or target, replace the version numbers accordingly.
To perform the database migration, do the following:
If not already done, upgrade any package of the old PostgreSQL version to the latest
release through a maintenance update.
Install the packages of the new PostgreSQL major version. For SLE 15 SP1 this means
to install postgresql10-server and all the packages it depends on.
Make sure you have enough free space in your PostgreSQL data area, which is /var/
lib/pgsql/data by default. If space is tight, try to reduce size with the following
SQL command on each database (can take very long!):
VACUUM FULL
or
(depending on the SLE version you use as the start version for your upgrade).
or
(depending on the SLE version you use as the start version for your upgrade).
5. If you have changed your configuration les in the old version, consider transferring these
changes to the new configuration les. This may affect the les postgresql.auto.conf ,
postgresql.conf , pg_hba.conf and pg_ident.conf . The old versions of these les are
located in /var/lib/pgsql/data.old/ , the new versions can be found in /var/lib/
pgsql/data .
Note that just copying the old configuration les is not recommended, because this may
overwrite new options, new defaults and changed comments.
root # su - postgres
postgres > pg_upgrade \
--old-datadir "/var/lib/pgsql/data.old" \
--new-datadir "/var/lib/pgsql/data" \
--old-bindir "/usr/lib/postgresql96/bin/" \
--new-bindir "/usr/lib/postgresql10/bin/"
or
(depending on the SLE version you use as the start version for your upgrade).
8. Check if the migration was successful. The scope of the test depends on your use case and
there is no general tool to automate this step.
If you want a stronger key, replace 1024 with a higher number, for example, 4096 .
root # openssl x509 -req -days 365 -in server.csr -signkey server.key -out
server.crt
6. Place the les server.crt , server.csr , server.key , and server.pem in the respec-
tive directories where the keys can be found. For Tomcat, for example, this directory is
/etc/tomcat/ssl/ .
In case upgrading your machine to a higher version of SUSE Linux Enterprise Server fails, de-
register the machine from the SMT server as described in Procedure 3.1. Afterward, restart the
upgrade process.
2. The following step depends on the current operating system of the client:
5. If the client's host name is still listed in the output of this command, get the client's Unique
ID from the rst column. (The client might be listed with multiple IDs.)
7. If the client is listed with multiple IDs, repeat the step above for each of its unique IDs.
For all le systems including Btrfs you need enough free disk space to download and install
big RPMs. The space of old RPMs are only freed after new RPMs are installed.
For Btrfs with snapshots, you need at minimum as much free space as your current instal-
lation takes. We recommend to have twice as much free space as the current installation.
If you do not have enough free space, you can try to delete old snapshots with snapper :
However, this may not help in all cases. Before migration, most snapshots occupy only
little space.
#multiversion = provides:multiversion(kernel)
#multiversion.kernels = latest,running
To re-activate this feature after a successful update, remove the comment signs. For more in-
formation about multiversion support, refer to Book “Deployment Guide”, Chapter 21 “Installing
Multiple Kernel Versions”, Section 21.1 “Enabling and Configuring Multiversion Support”.
DISPLAYMANAGER_STARTS_XSERVER="yes"
This chapter describes how to upgrade an existing SUSE Linux Enterprise installa-
tion using YaST which is booted from an installation medium. The YaST installer
can, for example, be started from a DVD, over the network, or from the hard disk
the system resides on.
Removable Media. This includes media such as CDs, DVDs or USB mass storage devices.
For more information, see Section 4.2, “Starting the Upgrade from an Installation Medium”.
Network Resource. You can either boot from the local medium and then select the re-
spective network installation type, or boot via PXE. For more information, see Section 4.3,
“Starting the Upgrade from a Network Source”.
2. Insert the Unified Installer DVD for SUSE Linux Enterprise Server 15 SP1 and boot your
machine. A Welcome screen is displayed, followed by the boot screen.
3. Optional: To force the installer to only install packages from the DVD and not from network
sources, add the boot option media_upgrade=1 .
5. Proceed with the upgrade process as described in Section 4.4, “Upgrading SUSE Linux Enter-
prise”.
DHCP (only needed for booting via PXE, IP can be set manually during setup)
OpenSLP (optional)
Boot Medium
A bootable SUSE Linux Enterprise DVD, ISO image or functioning PXE setup. For details
about booting via PXE, see Book “Deployment Guide”, Chapter 17 “Preparing Network Boot
Environment”, Section 17.4 “Preparing the Target System for PXE Boot”. Refer to Book “Deployment
Guide”, Chapter 11 “Remote Installation” for in-depth information on starting the upgrade
from a remote server.
2. Select the type of network installation source you want to use (FTP, HTTP, NFS, SMB, or
SLP). Usually you get this choice by pressing F4 , but in case your machine is equipped
with UEFI instead of a traditional BIOS, you may need to manually adjust boot parameters.
For details, see Book “Deployment Guide”, Chapter 7 “Boot Parameters” and Book “Deployment
Guide”, Chapter 8 “Installation Steps”.
3. Proceed with the upgrade process as described in Section 4.4, “Upgrading SUSE Linux Enter-
prise”.
1. Adjust the setup of your DHCP server to provide the address information needed for boot-
ing via PXE. For details, see Book “Deployment Guide”, Chapter 17 “Preparing Network Boot
Environment”, Section 17.1.1 “Dynamic Address Assignment”.
2. Set up a TFTP server to hold the boot image needed for booting via PXE. Use the Installer
DVD for SUSE Linux Enterprise Server 15 SP1 for this or follow the instructions in Book
“Deployment Guide”, Chapter 17 “Preparing Network Boot Environment”, Section 17.2 “Setting Up
a TFTP Server”.
4. Initiate the boot of the target system and use VNC to remotely connect to the installation
routine running on this machine. For more information, see Book “Deployment Guide”,
Chapter 11 “Remote Installation”, Section 11.3 “Monitoring Installation via VNC”.
5. Proceed with the upgrade process as described in Section 4.4, “Upgrading SUSE Linux Enter-
prise”.
27 Manually Upgrading via Network Installation Source—Booting via PXE SLES 15 SP1
Before you upgrade your system, read Chapter 3, Preparing the Upgrade rst. To perform an auto-
mated migration, proceed as follows:
1. After you have booted (either from an installation medium or the network), select the
Upgrade entry on the boot screen.
2. On the Welcome screen, choose Language and Keyboard. Proceed with Next.
YaST checks your partitions for already installed SUSE Linux Enterprise systems.
3. On the Select for Upgrade screen, select the partition to upgrade and click Next.
4. YaST mounts the selected partition and displays the license agreement for the upgraded
product. To continue, accept the license.
5. On the Previously Used Repositories screen, adjust the status of the repositories. By default
all repositories are removed. If you have not added any custom repositories, do not change
the settings. The packages for the upgrade will be installed from DVD, and you can op-
tionally enable the default online repositories in the next step.
If you have custom repositories, you have two choices:
Leave the repository in state Removed. Software that was installed from this reposi-
tory will be removed during the upgrade. Use this method if no version of the repos-
itory that matches the new release is available.
Update and enable the repository if it matches the new release. Change its URL by
clicking the repository in the list, and then click Change. Enable the repository by
checking Toggle Status until it is set to Enable.
6. The next step depends on whether the upgraded system is registered against SUSE Cus-
tomer Center or not.
a. If the system is not registered against SUSE Customer Center, YaST displays a pop-up
message suggesting using a second installation medium, the SLE-15-SP1-Packages
image.
If you do not have that medium the system cannot be upgraded without registration.
b. If the system is registered against SUSE Customer Center, YaST will show possible
migration targets and a summary.
Select one migration target from the list and proceed with Next.
7. In the next dialog you can optionally add an additional installation medium. If you have
additional installation media, activate the I would like to install an additional Add On Product
option and specify the media type.
9. If all settings are according to your wishes, start the installation and removal procedure
by clicking Update.
10. After the upgrade process has finished successfully, perform post-upgrade checks as de-
scribed in Section 4.4.1, “Post-upgrade Checks”.
Check for any *.rpmnew and *.rpmsave les, examine their content, and possibly merge
desirable changes. When an upgrade includes changes to a default configuration le, in-
stead of overwriting the configuration le, the package will write one of these le types.
While *.rpmnew contains the new default configuration and leaves your original le un-
touched, *.rpmsave is a copy of your original configuration that has been replaced by
the new default le.
You do not need to search the whole le system for *.rpmnew and *.rpmsave les, the
most important are stored in the /etc directory. Use the following command to list them:
We suggest always checking that the correct repositories are set up on the system, especially
after refreshing the service using:
1. Start YaST and select Software Product Registration to open the Registration dialog.
2. Provide the E-mail address associated with the SUSE account you or your organization
uses to manage subscriptions. In case you do not have a SUSE account yet, go to the SUSE
Customer Center home page (https://scc.suse.com/ ) to create one.
4. If one or more local registration servers are available on your network, you can choose
one of them from a list.
SUSE offers an intuitive graphical and a simple command line tool to upgrade a
running system to a new service pack. They provide support for “rollback” of ser-
vice packs and more. This chapter explains how to do a service pack upgrade step
by step with these tools.
The system is always in a defined state until the rst RPM is updated.
Use the offline migration to upgrade to a new major release. For details, see Chapter 4,
Upgrading Offline.
The list of migration targets depends on the products you have installed and registered. If you
have an extension installed for which the new SP is not yet available, it could be that no migra-
tion target is offered to you.
The list of migration targets available for your host will always be retrieved from the SUSE
Customer Center and depend on products or extensions installed.
1. Until the package upgrade starts, there are only minimal changes on the system, like for
services and repositories. Restore /etc/zypp/repos.d/* to revert to the former state.
2. After the package upgrade starts, you can revert to the former state by using a Snapper
snapshot (see Book “Administration Guide”, Chapter 7 “System Recovery and Snapshot Manage-
ment with Snapper”).
3. After the migration target was selected, SUSE Customer Center changes the repository
data. To revert this state manually, use SUSEConnect --rollback .
solver.onlyRequires = true
installRecommends=false
This changes the behavior of all package operations, such as the installation of patches
or new packages. To change the behavior of Zypper for a single invocation, add the pa-
rameter --no-recommends to your command line.
1. Deactivate all unused extensions on your registration server to avoid future dependency
conflicts. In case you forget an extension, YaST will later detect unused extension repos-
itories and deactivate them.
2. If you are logged in to a GNOME session running on the machine you are going to up-
date, switch to a text console. Running the update from within a GNOME session is not
recommended. Note that this does not apply when being logged in from a remote machine
(unless you are running a VNC session with GNOME).
3. If you are an LTSS subscriber, make sure that the LTSS extension repository is active.
4. Run YaST online update to get the latest package updates for your system.
5. Install the package yast2-migration and its dependencies (in YaST under Software Soft-
ware Management).
6. Restart YaST, otherwise the newly installed module will not be shown in the control center.
7. In YaST, choose Online Migration (depending on the version of SUSE Linux Enterprise
Server that you are upgrading from, this module is categorized under either System or
Software). YaST will show possible migration targets and a summary. If more than one
migration target is available for your system, select one from the list.
8. Select one migration target from the list and proceed with Next.
9. In case the migration tool offers update repositories, it is recommended to proceed with
Yes.
10. If the Online Migration tool nds obsolete repositories coming from DVD or a local server,
it is highly recommended to disable them. Obsolete repositories are from a previous SP.
Any old repositories from SUSE Customer Center or RMT are removed automatically.
11. Check the summary and proceed with the migration by clicking Next. Confirm with Start
Update.
solver.onlyRequires = true
installRecommends=false
This changes the behavior of all package operations, such as the installation of patches
or new packages. To change the behavior of Zypper for a single invocation, add the pa-
rameter --no-recommends to your command line.
1. If you are logged in to a GNOME session running on the machine you are going to up-
date, switch to a text console. Running the update from within a GNOME session is not
recommended. Note that this does not apply when being logged in from a remote machine
(unless you are running a VNC session with GNOME).
2. Register your SUSE Linux Enterprise machine if you have not done so:
3. If you are an LTSS subscriber, make sure that the LTSS extension repository is active.
[num/q]:
If more than one migration target is available for your system, Zypper allows you
to select one SP from the list. This is the same as skipping one or more SPs. Keep
in mind, online migration for base products (SLES, SLED) remains available only
between the SPs of a major version.
If Zypper nds obsolete repositories coming from DVD or a local server, it is highly
recommended to disable them. Old SUSE Customer Center or RMT repositories are
removed automatically.
5. Review all the changes, especially the packages that are going to be removed. Proceed by
typing y (the exact number of packages to upgrade can vary on your system):
Use the Shift – Page ↑ or Shift – Page ↓ keys to scroll in your shell.
1. If you are logged in to a graphical session running on the machine you are going to migrate,
log out of that session and switch to a text console. Running the update from within a
graphical session is not recommended. Note that this does not apply when being logged
in from a remote machine (unless you are running a VNC session with X).
2. Update the package management tools with the old SUSE Linux Enterprise repositories:
3. Get a list of packages that currently do not have a repository assigned to them (orphaned
packages). These packages will not be migrated and there is no guarantee that they will
work after the migration (because other packages they rely on may have changed in a way
they are no longer compatible). To get the list, run
Carefully review the list and remove all orphaned packages that are no longer needed.
Make a note of all remaining orphaned packages, you will need it later for comparison.
4. Get a list of all repositories that the system is currently subscribed to by running:
http://rmt.example.com/repo/SUSE/Products/SLE-15-Product-SLES/x86_64/product/
it needs to be changed to
http://rmt.example.com/repo/SUSE/Products/SLE-15-SP1-Product-SLES/x86_64/product/
This needs to be done with all repositories that are enabled. You may want to consider also
doing this for repositories that are currently disabled, to avoid having wrong installation
sources in the system when activating them at a later point in time.
To change the repository URLs you have the following options:
a. Using YaST Software Software Repositories. Select a repository and click Edit to
make the required change. Repeat this for all repositories.
b. Using Zypper. Add a new repository and remove the corresponding old one after-
wards:
5. Review your changes by running zypper repos -u and update the repositories by run-
ning:
In case updating a repository fails, double-check whether you entered the wrong URL. If
the problem cannot be xed, it is recommended to disable the failing repository.
If all repositories are correctly configured, run
The parameter -D will perform a dry-run, that simulates the migration without actually
changing the system. In case problems occur, x them before proceeding. In case the test
run succeeds, perform the real migration by running
-no-allow-vendor-change ensures that third-party RPMs will not overwrite RPMs from
the base system. The option --no-recommends ensures that packages deselected during
initial installation will not be added again.
7. When the migration has finished and the system has booted into the new service pack
version, run the check for orphaned packages again:
Compare the new list with the one you generated before starting the migration. In case
new packages appear in the list, it may be because they were moved to a different module
in the new service pack. In case you did not have that module in the previous installation,
the package did not get updated.
You can check to which module a package belongs at https://scc.suse.com/packages . Add
the missing modules using zypper addrepo or the YaST Software Repositories module,
and update the orphaned packages afterwards by running:
Review the output to locate the snapshot that was created immediately before the service
pack migration was started. The column Description contains a corresponding statement
and the snapshot is marked as important in the column Userdata. Memorize the snapshot
number from the column # and its date from the column Date.
2. Reboot the system. From the boot menu, select Start boot loader from a read-only snapshot
and then choose the snapshot with the date and number you memorized in the previous
step. A second boot menu (the one from the snapshot) is loaded. Select the entry starting
with SLES 15 SP1 and boot it.
3. The system boots into the previous state with the system partition mounted read-only.
Log in as root and check whether you have chosen the correct snapshot. Also make sure
everything works as expected. Note that since the root le system is mounted read-only,
restrictions in functionality may apply.
In case of problems or if you have booted the wrong snapshot, reboot and choose a different
snapshot to boot from—up to this point no permanent changes have been made. If the
snapshot is correct and works as expected, make the change permanent by running the
following command:
Reboot afterward. On the boot screen, choose the default boot entry to reboot into the
reinstated system.
4. Check if the repository configuration has been properly reset. Furthermore, check if all
products are properly registered. If either one is not the case, updating the system at a
later point in time may no longer work, or the system may be updated using the wrong
package repositories.
Make sure the system can access the Internet before starting this procedure.
Carefully check the output of this command. No services and repositories that were
added for the update should be listed. For example, if you are rolling back from
SLES15 SP1 to SLES15, the list must contain the SLES15 repositories, and not the
SLES15-SP1 repositories.
If wrong repositories are listed, delete them and, if necessary, replace them with the
versions matching your product or service pack version. For a list of repositories
for the supported migration paths refer to Section 2.3, “Module Dependencies and Life
Cycles”. (Note that manual intervention should not be necessary, as the repositories
should be updated automatically, but it is a best practice to verify and make any
necessary corrections.)
c. Last, check the registration status for all products installed by running
All products should be reported as being Registered . If this is not the case, repair
the registration by running
Now you have successfully reverted the system to the state that was captured immediately before
the service pack migration was started.
1. Switch to a TTY, for example by pressing Ctrl – Alt – F1 . Then log in as root .
2. Install SUSEConnect .
root # zypper lr
root # zypper mr -d REPO_IDS
45 Upgrading from openSUSE Leap to SUSE Linux Enterprise Server SLES 15 SP1
Replace REPO_IDS with a space character separated list of all enabled openSUSE repos-
itories.
To have replacements for most Leap packages, we recommend to enable the Basesystem,
Desktop Applications, Server Applications and Legacy modules. Additionally, we recom-
mend to enable the SUSE Package Hub.
46 Upgrading from openSUSE Leap to SUSE Linux Enterprise Server SLES 15 SP1
6 Backports of Source Code
SUSE extensively uses backports, for example for the migration of current software
fixes and features into released SUSE Linux Enterprise packages. The information in
this chapter explains why it can be misleading to compare version numbers to judge
the capabilities and the security of SUSE Linux Enterprise software packages. This
chapter also explains how SUSE keeps the system software secure and current while
maintaining compatibility for your application software on top of SUSE Linux Enter-
prise products. You will also learn how to check which public security issues actu-
ally are addressed in your SUSE Linux Enterprise system software, and the current
status of your software.
Usually, distribution developers do not follow all upstream changes when a package has become
part of a released distribution. Usually they stick instead with the upstream version that they
initially released and create patches based on upstream changes to x bugs. This practice is
known as backporting.
Distribution developers generally will only introduce a newer version of software in two cases:
when the changes between their packages and the upstream versions have become so large
that backporting is no longer feasible, or
Having stable interfaces (APIs) that software vendors can rely on when building products
for use on SUSE's enterprise products.
Ensuring that packages used in the release of SUSE's enterprise products are of the highest
quality and have been thoroughly tested, both in themselves and as part of the whole
enterprise product.
Maintaining the various certifications of SUSE's enterprise products by other vendors, like
certifications for Oracle or SAP products.
Allowing SUSE's developers to focus on making the next product version, rather than
spreading their focus thinly across a wide range of releases.
Keeping a clear view of what is in a particular enterprise release, so that our support can
provide accurate and timely information about it.
The package changelog may contain entries like bsc#1234 (“Bugzilla Suse.Com”) that
refer to bugs in SUSE's Bugzilla tracking system or links to other bugtracking systems.
Because of confidentiality policies, not all such information may be accessible to you.
The RPM source package contains the patches that were applied during the building of the
regular binary RPMs as separate les that can be interpreted if you are familiar with read-
ing source code. See Book “Administration Guide”, Chapter 6 “Managing Software with Command
Line Tools”, Section 6.1.3.5 “Installing or Downloading Source Packages” for installing sources of
SUSE Linux Enterprise software. See Book “Administration Guide”, Chapter 6 “Managing Soft-
For security bug fixes, consult the SUSE security announcements (http://www.suse.com/
support/security/#1) . These often refer to bugs through standardized names like
CAN-2005-2495 which are maintained by the Common Vulnerabilities and Exposures (CVE)
(http://cve.mitre.org) project.
This License applies to any manual or other work, in any medium, that contains a notice placed 3. COPYING IN QUANTITY
by the copyright holder saying it can be distributed under the terms of this License. Such a
notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under If you publish printed copies (or copies in media that commonly have printed covers) of the
the conditions stated herein. The "Document", below, refers to any such manual or work. Any Document, numbering more than 100, and the Document's license notice requires Cover Texts,
member of the public is a licensee, and is addressed as "you". You accept the license if you you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts:
copy, modify or distribute the work in a way requiring permission under copyright law. Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers
A "Modified Version" of the Document means any work containing the Document or a portion must also clearly and legibly identify you as the publisher of these copies. The front cover
of it, either copied verbatim, or with modifications and/or translated into another language. must present the full title with all words of the title equally prominent and visible. You may
add other material on the covers in addition. Copying with changes limited to the covers, as
A "Secondary Section" is a named appendix or a front-matter section of the Document that
long as they preserve the title of the Document and satisfy these conditions, can be treated
deals exclusively with the relationship of the publishers or authors of the Document to the
as verbatim copying in other respects.
Document's overall subject (or to related matters) and contains nothing that could fall directly
within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a If the required texts for either cover are too voluminous to t legibly, you should put the
Secondary Section may not explain any mathematics.) The relationship could be a matter rst ones listed (as many as t reasonably) on the actual cover, and continue the rest onto
of historical connection with the subject or with related matters, or of legal, commercial, adjacent pages.
philosophical, ethical or political position regarding them. If you publish or distribute Opaque copies of the Document numbering more than 100, you
The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being must either include a machine-readable Transparent copy along with each Opaque copy, or
those of Invariant Sections, in the notice that says that the Document is released under this state in or with each Opaque copy a computer-network location from which the general net-
License. If a section does not t the above definition of Secondary then it is not allowed to be work-using public has access to download using public-standard network protocols a complete
designated as Invariant. The Document may contain zero Invariant Sections. If the Document Transparent copy of the Document, free of added material. If you use the latter option, you
does not identify any Invariant Sections then there are none. must take reasonably prudent steps, when you begin distribution of Opaque copies in quanti-
ty, to ensure that this Transparent copy will remain thus accessible at the stated location until
The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or
at least one year after the last time you distribute an Opaque copy (directly or through your
Back-Cover Texts, in the notice that says that the Document is released under this License. A
agents or retailers) of that edition to the public.
Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words.
It is requested, but not required, that you contact the authors of the Document well before
A "Transparent" copy of the Document means a machine-readable copy, represented in a for-
redistributing any large number of copies, to give them a chance to provide you with an
mat whose specification is available to the general public, that is suitable for revising the doc-
updated version of the Document.
ument straightforwardly with generic text editors or (for images composed of pixels) generic
paint programs or (for drawings) some widely available drawing editor, and that is suitable
for input to text formatters or for automatic translation to a variety of formats suitable for
input to text formatters. A copy made in an otherwise Transparent le format whose markup,
or absence of markup, has been arranged to thwart or discourage subsequent modification
by readers is not Transparent. An image format is not Transparent if used for any substantial
amount of text. A copy that is not "Transparent" is called "Opaque".
Examples of suitable formats for Transparent copies include plain ASCII without markup, Tex-
info input format, LaTeX input format, SGML or XML using a publicly available DTD, and stan-
dard-conforming simple HTML, PostScript or PDF designed for human modification. Examples
of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary
51 SLES 15 SP1
The author(s) and publisher(s) of the Document do not by this License give permission to use
4. MODIFICATIONS
their names for publicity for or to assert or imply endorsement of any Modified Version.
You may copy and distribute a Modified Version of the Document under the conditions of
sections 2 and 3 above, provided that you release the Modified Version under precisely this 5. COMBINING DOCUMENTS
License, with the Modified Version filling the role of the Document, thus licensing distribution
and modification of the Modified Version to whoever possesses a copy of it. In addition, you You may combine the Document with other documents released under this License, under
must do these things in the Modified Version: the terms defined in section 4 above for modified versions, provided that you include in the
combination all of the Invariant Sections of all of the original documents, unmodified, and
A. Use in the Title Page (and on the covers, if any) a title distinct from that of the
list them all as Invariant Sections of your combined work in its license notice, and that you
Document, and from those of previous versions (which should, if there were any,
preserve all their Warranty Disclaimers.
be listed in the History section of the Document). You may use the same title as a
previous version if the original publisher of that version gives permission. The combined work need only contain one copy of this License, and multiple identical Invari-
ant Sections may be replaced with a single copy. If there are multiple Invariant Sections with
B. List on the Title Page, as authors, one or more persons or entities responsible for the same name but different contents, make the title of each such section unique by adding
authorship of the modifications in the Modified Version, together with at least ve at the end of it, in parentheses, the name of the original author or publisher of that section if
of the principal authors of the Document (all of its principal authors, if it has fewer known, or else a unique number. Make the same adjustment to the section titles in the list of
than ve), unless they release you from this requirement. Invariant Sections in the license notice of the combined work.
C. State on the Title page the name of the publisher of the Modified Version, as the In the combination, you must combine any sections Entitled "History" in the various original
publisher. documents, forming one section Entitled "History"; likewise combine any sections Entitled
"Acknowledgements", and any sections Entitled "Dedications". You must delete all sections
D. Preserve all the copyright notices of the Document.
Entitled "Endorsements".
E. Add an appropriate copyright notice for your modifications adjacent to the other
copyright notices.
6. COLLECTIONS OF DOCUMENTS
F. Include, immediately after the copyright notices, a license notice giving the public
permission to use the Modified Version under the terms of this License, in the form You may make a collection consisting of the Document and other documents released under
shown in the Addendum below. this License, and replace the individual copies of this License in the various documents with a
single copy that is included in the collection, provided that you follow the rules of this License
G. Preserve in that license notice the full lists of Invariant Sections and required Cover
for verbatim copying of each of the documents in all other respects.
Texts given in the Document's license notice.
You may extract a single document from such a collection, and distribute it individually under
H. Include an unaltered copy of this License. this License, provided you insert a copy of this License into the extracted document, and follow
this License in all other respects regarding verbatim copying of that document.
I. Preserve the section Entitled "History", Preserve its Title, and add to it an item
stating at least the title, year, new authors, and publisher of the Modified Version
as given on the Title Page. If there is no section Entitled "History" in the Document, 7. AGGREGATION WITH INDEPENDENT WORKS
create one stating the title, year, authors, and publisher of the Document as given
on its Title Page, then add an item describing the Modified Version as stated in A compilation of the Document or its derivatives with other separate and independent docu-
the previous sentence. ments or works, in or on a volume of a storage or distribution medium, is called an "aggregate"
if the copyright resulting from the compilation is not used to limit the legal rights of the com-
J. Preserve the network location, if any, given in the Document for public access to
pilation's users beyond what the individual works permit. When the Document is included in
a Transparent copy of the Document, and likewise the network locations given in
an aggregate, this License does not apply to the other works in the aggregate which are not
the Document for previous versions it was based on. These may be placed in the
themselves derivative works of the Document.
"History" section. You may omit a network location for a work that was published
at least four years before the Document itself, or if the original publisher of the If the Cover Text requirement of section 3 is applicable to these copies of the Document, then
version it refers to gives permission. if the Document is less than one half of the entire aggregate, the Document's Cover Texts
may be placed on covers that bracket the Document within the aggregate, or the electronic
K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title equivalent of covers if the Document is in electronic form. Otherwise they must appear on
of the section, and preserve in the section all the substance and tone of each of the printed covers that bracket the whole aggregate.
contributor acknowledgements and/or dedications given therein.
L. Preserve all the Invariant Sections of the Document, unaltered in their text and 8. TRANSLATION
in their titles. Section numbers or the equivalent are not considered part of the
section titles. Translation is considered a kind of modification, so you may distribute translations of the
M. Delete any section Entitled "Endorsements". Such a section may not be included Document under the terms of section 4. Replacing Invariant Sections with translations requires
in the Modified Version. special permission from their copyright holders, but you may include translations of some
or all Invariant Sections in addition to the original versions of these Invariant Sections. You
N. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in may include a translation of this License, and all the license notices in the Document, and
title with any Invariant Section. any Warranty Disclaimers, provided that you also include the original English version of this
O. Preserve any Warranty Disclaimers. License and the original versions of those notices and disclaimers. In case of a disagreement
between the translation and the original version of this License or a notice or disclaimer, the
If the Modified Version includes new front-matter sections or appendices that qualify as Se- original version will prevail.
condary Sections and contain no material copied from the Document, you may at your option
If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the
designate some or all of these sections as invariant. To do this, add their titles to the list of
requirement (section 4) to Preserve its Title (section 1) will typically require changing the
Invariant Sections in the Modified Version's license notice. These titles must be distinct from
actual title.
any other section titles.
You may add a section Entitled "Endorsements", provided it contains nothing but endorse-
ments of your Modified Version by various parties--for example, statements of peer review
9. TERMINATION
or that the text has been approved by an organization as the authoritative definition of a
You may not copy, modify, sublicense, or distribute the Document except as expressly pro-
standard.
vided for under this License. Any other attempt to copy, modify, sublicense or distribute the
You may add a passage of up to ve words as a Front-Cover Text, and a passage of up to 25
Document is void, and will automatically terminate your rights under this License. However,
words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only
parties who have received copies, or rights, from you under this License will not have their
one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through
licenses terminated so long as such parties remain in full compliance.
arrangements made by) any one entity. If the Document already includes a cover text for the
same cover, previously added by you or by arrangement made by the same entity you are
acting on behalf of, you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.
52 SLES 15 SP1
10. FUTURE REVISIONS OF THIS LICENSE
The Free Software Foundation may publish new, revised versions of the GNU Free Documen-
tation License from time to time. Such new versions will be similar in spirit to the present
version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/
copyleft/ .
Each version of the License is given a distinguishing version number. If the Document specifies
that a particular numbered version of this License "or any later version" applies to it, you have
the option of following the terms and conditions either of that specified version or of any
later version that has been published (not as a draft) by the Free Software Foundation. If the
Document does not specify a version number of this License, you may choose any version ever
published (not as a draft) by the Free Software Foundation.
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the
“with...Texts.” line with this:
with the Invariant Sections being LIST THEIR TITLES, with the
Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
If you have Invariant Sections without Cover Texts, or some other combination of the three,
merge those two alternatives to suit the situation.
If your document contains nontrivial examples of program code, we recommend releasing
these examples in parallel under your choice of free software license, such as the GNU General
Public License, to permit their use in free software.
53 SLES 15 SP1