Win $20,000. Help build the future of education. Answer the call. Learn more

Archived | Upgrading SUSE Linux Enterprise Server with Zypper

Archived content

Archive date: 2019-06-26

This content is no longer being updated or maintained. The content is provided “as is.” Given the rapid evolution of technology, some content, steps, or illustrations may have changed.


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.