ikapelyukhin / opensuse-migration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openSUSE migration

Provides zypper services with repo definitions as well as leap-cli utility to switch between versions (as an alternative to tumbleweed-cli).

Usage

  1. zypper in opensuse-migration -- the package will provide a local zypper service;
  2. Use zypper as usual until the time for migration comes;
  3. leap-cli migrate to choose a migration target;
  4. zypper dup to upgrade all the packages.

Installation

Get the RPM package from OBS: home:ikapelyukhin/opensuse-migration

Demo

See it in action:

asciicast

Gory technical details

Zypper service types

  1. RIS: XML format, URL is mandatory in service ini; file: or dir: URLs have to point to a directory that contains repo/repoindex.xml in it.
  2. Plugin: a script that prints ini to STDOUT; repos that come from it are volatile -- can't disable individual repos with zypper mr -d (reset on next service refresh).

Additional details can be found in the documentation.

Zypper RIS service INI example

[service_alias]
name=Service Name
enabled=1
autorefresh=1
url = https://example.org/
type = ris

Zypper RIS service XML example

<repoindex ttl="86400">
<repo url="https://example.org/product" alias="Example-Pool" name="Example-Pool" autorefresh="false" enabled="true"/>
<repo url="https://example.org/update" alias="Example-Updates" name="Example-Updates" autorefresh="true" enabled="true"/>
</repoindex>

About


Languages

Language:Ruby 95.7%Language:Makefile 4.3%