Zypper-Upgradedistro script

A simple script that implements all the steps discussed in the Upgrading openSUSE with zypper article in an interactive mode, taking advantage of the ZypperUpgradeRepo CLI application.

  • Name:
    Zypper-Upgradedistro
  • Language:
    Bash
  • Type:
    Bash script
  • License:
    GPL v.3
  • Platform:
    KDE
  • Requirements:
    zypper-upgraderepo
  • First release:
    1.0.0 (October 05, 2022)
  • Current release:
    1.1.0 (February 03, 2023)
  • Links:

Main Features

  • Help messages guide step by step in the upgrade process;
  • Make use of the zypper-upgraderepo app to performs the repository search and upgrade;
  • Able to resume from the last succesful step with a single switch;
  • Every step can be ignored with the proper switch.

Installation

Manual Install

  1. Clone the git repo:
    $ git clone https://github.com/fabiomux/zypper-upgradedistro.git
    
  2. Switch to the project folder:
    $ cd opensuse_leap_upgrade
    
  3. To install the script and the plugin:
    $ make install
    
  4. To install only the script:
    $ make install_script
    
  5. Uninstall:
    $ make uninstall
    

From openSUSE Build Service

$ sudo zypper ar https://download.opensuse.org/repositories/home:/FabioMux/15.5/home:FabioMux.repo
$ sudo zypper in 'zypper-upgradedistro-plugin'

Articles on FreeAptitude

Changelog

Version 1.1.0 (February 03, 2023)

  • Added the support for the new zypper-upgraderepo executable name;
  • Added a basic code documentation and cleanup the code;
  • Added the error handling when the package management system is already in use;
  • Updated the man page and the README file;
  • Fixed the research of an unstable version in the openSUSE page using the --allow-unstable option;
  • Added the --load-overrides option to load a list of overriden repository URLs;
  • Added the $check_for variable usage in the fix_repos_upgrade function;
  • Added a different value for tasks variables to identify the skipping and the resume actions;
  • Added the user check to prevent starting it as a root user;
  • Added the $EDITOR usage variable;
  • Improved the Usage section with Options and The default editor subsections;
  • Improved the messages.

Version 1.0.0 (October 05, 2022)

  • First public release.



Leave a Comment