zypper

All posts tagged zypper

software.opensuse.org.

Search for your software, make sure you choose the packages geared for your distro SLES11SP1 or 2.  Open the repository in your browswer, look for the .repo file.  For example, here’s the ImageMagick for SLES11SP2

http://download.opensuse.org/repositories/home:/cabelo:/ImageMagick/SLE_11_SP2/

Click the home:cabelo:ImageMagick.repo file

Select all, copy/paste into /etc/zypp/repos.d/Image.repo

zypper ref -s

Here’s an easier way without needing to go through lame ass yast.

 

Online Migration with zypper¶

  1. When all requirements are met (see Section 7.5.1.1, “Requirements”), the “products” needed for the online migration have been added to /etc/products.d. Get a list of these products by running the following command:

    This command should at least return SUSE_SLES-SP2-migration. Depending on the scope of your installation, more products may be listed.
  2. Install the migration products retrieved on the previous step with the command zypper in -t product LIST_OF_PRODUCTS, for example
  3. Register the products installed in the previous step in order to get the respective update channels:
  4. Refresh repositories and services again:
  5. Check the list of repositories you can retrieve with zypper lr. At least the following repositories need to be Enabled:
    • SLES11-SP1-Pool
    • SLES11-SP1-Updates
    • SLES11-SP2-Core
    • SLES11-SP2-Updates

    Depending on the scope of your installation, further repositories for add-on products or extensions need to be enabled.

    If one of these repositories is not enabled (the SP2 ones are not enabled by default when following this workflow), enable them with zypper modifyrepo –enable REPOSITORY ALIAS, for example:

    If your setup contains 3rd party repositories that may not be compatible with SP2, disable them with zypper modifyrepo –disable REPOSITORY ALIAS.

  6. Now everything is in place to perform the distribution upgrade with zypper dup –from REPO 1 –from REPO 2 .... Make sure to list all needed repositories with --from, for example:

    Confirm with y to start the upgrade.

  7. Upon completion of the distribution upgrade from the previous step, a Minimal Migration has been performed (a minimal set of packages has been updated to the latest SP2 level). Skip this step if you do not intend to do a Full Migration.

    In order to do a Full Migration (updates all packages to the latest SP2 level), run the following command:

  8. Now that the upgrade to SP2 has been completed, you need to re-register your product:

  9. Last, reboot your system.
  10. Your system has been successfully updated to Service Pack 2.