Upgrading SUSE Linux Enterprise Server with Zypper

This article explains how to use Zypper for upgrading the SUSE Linux Enterprise Server (SLES), and also describes the process to create and modify the repository configuration files.

Venkateswarlu Yellala (venkatesh@in.ibm.com), IT Specialist, IBM

Photo of YellalaVenkateswarlu Yellala has been working for the IBM ISTL/ISL Operations Team for the past 3 years as a Linux, UNIX, and Windows specialist providing L3 and L3+ support and has an overall experience of more than 5 years in the same domain.



18 April 2014

Also available in Chinese

Introduction

Zypper is a command-line package manager for installing, updating, and removing packages as well as for managing repositories. It is especially useful for accomplishing remote software management tasks and this package is available by default in the SUSE Linux operation system. Sometimes, when you want to perform some updates, you might not be able to do the task using a DVD due to display issues or the YaST utility not work properly. In such cases, we can use the Zypper utility.

Perform the following tasks to upgrade from SUSE Linux Enterprise Server (SLES) 11 SP0 to SLES 11 SP03.

  1. List the repositories added already.

    The message "No repositories defined" indicates that no repository has been added yet.

  2. Add the File Transfer Protocol (FTP) repository as per your environment.
  3. Add the Hypertext Transfer Protocol (HTTP) and Network File System (NFS) repositories.
  4. List all the repositories in the SLES server.
  5. At this point, we need only one repository to be active. To do so, turn off all repositories and just turn on the required repository alone. To turn off the repositories, enter the zypper modifyrepo –all --disable command. You need to perform this task as a root user.
  6. Turn on the required repository using the zypper modifyrepo –-enable repo-update command.
  7. Refresh the repositories.
  8. Now, run the full distribution upgrade using the zypper dup command.

Note that the current version is SLES 11 SP0, and this has to be upgraded to SLES 11 SP03.

Notice that all the required packages are loaded for the upgrade. Enter yes to continue and yes to accept the license agreement.

Notice that the OS has been upgraded to SLES 11 SP03 successfully. Using this method you would be able to perform the upgrade within 15 minutes. Now, restart the system for the changes to take effect.

General usage

The general syntax of Zypper is

 zypper [global-options]command[command-options][arguments] ...

The components enclosed in brackets are optional. The simplest way to run Zypper is to type its name, followed by a command.


Resources

Comments

developerWorks: Sign in

Required fields are indicated with an asterisk (*).


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name



The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


All information submitted is secure.

Dig deeper into Linux on developerWorks


static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Linux
ArticleID=968952
ArticleTitle=Upgrading SUSE Linux Enterprise Server with Zypper
publish-date=04182014