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.
- List the repositories added already.
The message "No repositories defined" indicates that no repository has been added yet.
- Add the File Transfer Protocol (FTP) repository as per your environment.
- Add the Hypertext Transfer Protocol (HTTP) and Network File System (NFS) repositories.
- List all the repositories in the SLES server.
- 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 --disablecommand. You need to perform this task as a root user.
- Turn on the required repository using the
zypper modifyrepo –-enable repo-updatecommand.
- Refresh the repositories.
- Now, run the full distribution upgrade using the
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.
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.
Dig deeper into Linux on developerWorks
Get samples, articles, product docs, and community resources to help build, deploy, and manage your cloud apps.
Keep up with the best and latest technical info to help you tackle your development challenges.
Software development in the cloud. Register today to create a project.
Evaluate IBM software and solutions, and transform challenges into opportunities.