ZypperUpgraderepo app

Ruby application born as a complement for zypper command line, helps on automatizing the repository’s URLs check and upgrade procedure for openSUSE Leap. It provides a set of commands to better accomplish that tedious task: from the repository backup to the discovery attempt of an alternative URL in case something in the URL schema changed. Among the last operations added there are the current repository availability and the repository downgrade.


From Rubygems

$ gem install zypper-upgraderepo

From OBS repository (openSUSE Leap 15.3)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.3/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

From OBS repository (openSUSE Leap 15.2)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.2/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

From OBS repository (openSUSE Leap 15.1)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.1/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

From OBS repository (openSUSE Leap 15.0)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.0/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

From OBS repository (openSUSE Leap 42.3)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_42.3/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

From OBS repository (openSUSE Leap 42.2)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_42.2/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

From OBS repository (openSUSE Leap 42.1)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_42.1/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

From OBS repository (openSUSE Leap 13.2)

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_13.2/home:FabioMux.repo
$ sudo zypper in 'zypper-upgraderepo-plugin'

Articles on FreeAptitude

External resources


Version 1.5.0 (February 17, 2021)

  • Refactored the Request class to dynamically load different repository protocols;
  • Improved the code to easily develop and integrate more protocols classes;
  • Added the Local repository type beside the Http one;
  • Added the --only-protocols switch to filter repositories for protocols;
  • Added the support for $releasever, $releasver_major and $releasever_minor variables;
  • Added a notification for unversioned repositories;
  • Fixed the old_url field show on Ini view when the repository has not been upgraded yet;
  • Improved the back drop discovery level for each repository protocol.

Version 1.4.0 (July 25, 2020)

  • Refactored the url overrides process;
  • Improved the help interface;
  • Code cleanup and refactoring of the Builder and RepositoryList classes;
  • Added comments in the ini view and case lowered all the keys;
  • Added the --only-invalid filter;
  • Improved and made univocal the association between a repository and its number;
  • Fixed the option value used by --load-overrides;
  • Extended the use of loading overrides from file as option for other check and upgrade commands;
  • Added exit error codes for different errors raised.

Version 1.3.0 (March 13, 2020)

  • Added the check-from-file operation;
  • Added the upgrade-from-file operation;
  • Added the ini view;
  • Added the --exit-on-fail option;
  • Added the --quiet view;
  • Added the "system update" check before saving the upgraded repos;
  • Added the --reset operation.

Version 1.2.0 (December 20, 2018)

  • Improved the checking procedure;
  • Improved the alternative URL finding procedure;
  • Added the --only-repo option to check and upgrade only specified repos;
  • Added the upgrade view;
  • Added server timeout handling;
  • Fixed the interruption error handling;
  • Code cleanup and refactoring.

Version 1.1.0 (September 03, 2018)

  • New report view;
  • Improved the system to find alternative URLs;
  • Added repo sorting for alias, name and priority;
  • Added the column 'enabled' on table view;
  • Minor fixes.

Version 1.0.2 (August 21, 2018)

  • Fixed a typo error while calling a Messages method;
  • Help is now the defaul action.

Version 1.0.1 (July 02, 2018)

  • Small fixes on the checking result table.

Version 1.0.0 (June 26, 2018)

  • First public release