GithubHelp home page GithubHelp logo

fabiomux / zypper-upgraderepo Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 174 KB

Zypper plugin intended for the openSUSE Leap distro which checks and upgrades the URLs within the repository list.

Home Page: https://freeaptitude.altervista.org/projects/zypper-upgraderepo.html

License: GNU General Public License v3.0

Ruby 99.77% Shell 0.23%
ruby zypper opensuse upgrade leap opensuse-leap opensuse-upgrade zypper-plugin zypper-upgraderepo

zypper-upgraderepo's People

Contributors

fabiomux avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

zypper-upgraderepo's Issues

zypper-upgraderepo

This script checks the availability of the repository URLs for a certain openSUSE Leap version and tries to find the reason why an URL doesn't work as it should, proposing a solution when possible.

The checking tasks are:

  • Check the repository URLs for the current openSUSE Leap release;
  • check the repository URLs for the next openSUSE Leap release;
  • check the repository URLs for the last openSUSE release stable or not;
  • check the repository URLs for whatever valid openSUSE release.

Besides that, it is also able to overwrite the repositories to prepare the distro for the next upgrade:

  • Upgrade the repository URLs to the next openSUSE Leap release;
  • upgrade the repository URLs to the last openSUSE Leap release;
  • upgrade the repository to a whatever valid openSUSE release.

Other complementary tasks embedded in this tool provide:

  • A repository backup in a compressed tar archive;
  • an update of the repositories left behind for a long time;
  • the reset of all the current operations;
  • the printing of the current status.

Other features:

  • ability to create custom scanners for different webpage repositories answers (JSON) with ease;
  • ability to read about new releases from an online-served file, without the need to release a new version every time;
  • provide a caching mechanism to store the version file.

script fails on local rpm dir repo

Hello,

the script fails on a local rpm dir repo:

Error! undefined method `request_uri' for #<URI::Generic dir:/home/m/localrepo/repodata/repomd.xml>
'/usr/lib/zypper/commands/zypper-upgraderepo' exited with status 1

these kind of repos could be skipped?

thanks for the script
cheers

Cannot install zypper-upgraderepo-plugin

Using the following guideline: https://freeaptitude.altervista.org/projects/zypper-upgraderepo.html

It is not possible to install zypper-upgraderepo-plugin

Repository is present:

`/etc/zypp/repos.d # zyp lr -r 9
Alias : home_FabioMux
Name : FabioMux's Home Project (openSUSE_Leap_15.2)
URI : https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.2/
Enabled : Yes
......

/etc/zypp/repos.d # zyp in zypper-upgraderepo-plugin
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides rubygem(ruby:2.5.0:minitar) >= 0 needed by ruby2.5-rubygem-zypper-upgraderepo-1.4.0-lp152.1.1.x86_64
Solution 1: do not install zypper-upgraderepo-plugin-1.4.0-lp152.1.1.x86_64
Solution 2: break ruby2.5-rubygem-zypper-upgraderepo-1.4.0-lp152.1.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c):
`

Available minitar is:
`# zyp se minitar
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+-----------------------------------------+-------------------------------------------------------+--------
| ruby2.5-rubygem-archive-tar-minitar | Provides POSIX tarchive management from Ruby programs | package
`

The above package can be installed without problems:
(1/1) Installing: ruby2.5-rubygem-archive-tar-minitar-0.5.2-lp152.3.3.x86_64 ........................................................[done] Additional rpm output: update-alternatives: using /usr/bin/minitar.ruby2.5-0.5.2 to provide /usr/bin/minitar (minitar) in auto mode update-alternatives: using /usr/bin/minitar.ruby2.5-0.5.2 to provide /usr/bin/minitar-0.5.2 (minitar-0.5.2) in auto mode update-alternatives: using /usr/bin/minitar.ruby2.5-0.5.2 to provide /usr/bin/minitar.ruby2.5 (minitar.ruby2.5) in auto mode

The package provides only:
# rpm -q --provides ruby2.5-rubygem-archive-tar-minitar ruby2.5-rubygem-archive-tar-minitar = 0.5.2-lp152.3.3 ruby2.5-rubygem-archive-tar-minitar(x86-64) = 0.5.2-lp152.3.3 rubygem(archive-tar-minitar) = 0.5.2 rubygem(ruby:2.5.0:archive-tar-minitar) = 0.5.2 rubygem(ruby:2.5.0:archive-tar-minitar:0) = 0.5.2 rubygem(ruby:2.5.0:archive-tar-minitar:0.5) = 0.5.2 rubygem(ruby:2.5.0:archive-tar-minitar:0.5.2) = 0.5.2

Could it be that your dependencies must be set to rubygem(ruby:2.5.0:archive-tar-minitar) ?

can't find valid alternative

Hello,

I have the tailscale repo and although it uses $releasever, zypper-upgraderepo reports it can't find an alternative. is this normal behavior? Also, it seems due to this error, it skips the next repo (nr 23, teamviewer)

$ zypper-upgraderepo --check-current
 St. |  # | Name                                                                                        | En. | Hint
------------------------------------------------------------------------------------------
 [V] |  1 | Visual Studio Code                                                                          |  Y  |
------------------------------------------------------------------------------------------
 [V] |  2 | nVidia Graphics Drivers                                                                     |  Y  |
------------------------------------------------------------------------------------------
 [V] |  3 | Packman Repository                                                                          |  Y  |
------------------------------------------------------------------------------------------
 [V] |  4 | FabioMux's Home Project (15.4)                                                              |  Y  |
------------------------------------------------------------------------------------------
 [V] |  5 | insync                                                                                      |  Y  |
------------------------------------------------------------------------------------------
 [V] |  6 | Libdvdcss Repository                                                                        |  Y  |
------------------------------------------------------------------------------------------
 [V] |  7 | opensuse hardware repo                                                                      |  Y  |
------------------------------------------------------------------------------------------
 [V] |  8 | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports |  N  |
------------------------------------------------------------------------------------------
 [V] |  9 | Update repository of openSUSE Backports                                                     |  Y  |
------------------------------------------------------------------------------------------
 [V] | 10 | Debug Repository                                                                            |  N  |
------------------------------------------------------------------------------------------
 [V] | 11 | Debug Repository (Non-OSS)                                                                  |  N  |
------------------------------------------------------------------------------------------
 [V] | 12 | Update Repository (Debug)                                                                   |  N  |
------------------------------------------------------------------------------------------
 [V] | 13 | Update Repository (Debug, Non-OSS)                                                          |  N  |
------------------------------------------------------------------------------------------
 [V] | 14 | Non-OSS Repository                                                                          |  Y  |
------------------------------------------------------------------------------------------
 [V] | 15 | Main Repository                                                                             |  Y  |
------------------------------------------------------------------------------------------
 [V] | 16 | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  |  N  |
------------------------------------------------------------------------------------------
 [V] | 17 | Update repository with updates from SUSE Linux Enterprise 15                                |  Y  |
------------------------------------------------------------------------------------------
 [V] | 18 | Source Repository                                                                           |  N  |
------------------------------------------------------------------------------------------
 [V] | 19 | Source Repository (Non-OSS)                                                                 |  N  |
------------------------------------------------------------------------------------------
 [V] | 20 | Main Update Repository                                                                      |  Y  |
------------------------------------------------------------------------------------------
 [V] | 21 | Update Repository (Non-Oss)                                                                 |  Y  |
------------------------------------------------------------------------------------------
 [E] | 22 | Tailscale stable                                                                            |  Y  | Can't find a valid alternative, try manually!
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
 [V] | 24 | vivaldi                                                                                     |  Y  |
------------------------------------------------------------------------------------------

my repos:

$ zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                                   | Name                                                                               | Enabled | GPG Check | Refresh | URI
---+-----------------------------------------+------------------------------------------------------------------------------------+---------+-----------+---------+-------------------------------------------------------------------------
 1 | code                                    | Visual Studio Code                                                                 | Yes     | (r ) Yes  | No      | https://packages.microsoft.com/yumrepos/vscode
 2 | download.nvidia.com-leap                | nVidia Graphics Drivers                                                            | Yes     | (r ) Yes  | Yes     | https://download.nvidia.com/opensuse/leap/15.3
 3 | ftp.gwdg.de-openSUSE_Leap_$releasever_1 | Packman Repository                                                                 | Yes     | (r ) Yes  | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.3/
 4 | home_FabioMux                           | FabioMux's Home Project (15.4)                                                     | Yes     | (r ) Yes  | No      | https://download.opensuse.org/repositories/home:/FabioMux/15.4/
 5 | insync                                  | insync                                                                             | Yes     | (r ) Yes  | Yes     | http://yum.insynchq.com/fedora/27
 6 | opensuse-guide.org-repo                 | Libdvdcss Repository                                                               | Yes     | (r ) Yes  | Yes     | http://opensuse-guide.org/repo/openSUSE_Leap_15.3/
 7 | opensuse-hw                             | opensuse hardware repo                                                             | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/hardware/openSUSE_Leap_15.3/
 8 | repo-backports-debug-update             | Update repository with updates for openSUSE Leap debuginfo packages from openSUS-> | No      | ----      | ----    | http://download.opensuse.org/update/leap/15.3/backports_debug/
 9 | repo-backports-update                   | Update repository of openSUSE Backports                                            | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/backports/
10 | repo-debug                              | Debug Repository                                                                   | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.3/repo/oss/
11 | repo-debug-non-oss                      | Debug Repository (Non-OSS)                                                         | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.3/repo/non-oss/
12 | repo-debug-update                       | Update Repository (Debug)                                                          | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/oss/
13 | repo-debug-update-non-oss               | Update Repository (Debug, Non-OSS)                                                 | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/non-oss/
14 | repo-non-oss                            | Non-OSS Repository                                                                 | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/
15 | repo-oss                                | Main Repository                                                                    | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.3/repo/oss/
16 | repo-sle-debug-update                   | Update repository with debuginfo for updates from SUSE Linux Enterprise 15         | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/sle/
17 | repo-sle-update                         | Update repository with updates from SUSE Linux Enterprise 15                       | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/sle/
18 | repo-source                             | Source Repository                                                                  | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.3/repo/oss/
19 | repo-source-non-oss                     | Source Repository (Non-OSS)                                                        | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.3/repo/non-oss/
20 | repo-update                             | Main Update Repository                                                             | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/oss
21 | repo-update-non-oss                     | Update Repository (Non-Oss)                                                        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/non-oss/
22 | tailscale-stable                        | Tailscale stable                                                                   | Yes     | (r ) Yes  | No      | https://pkgs.tailscale.com/stable/opensuse/leap/15.3/x86_64
23 | teamviewer                              | TeamViewer - x86_64                                                                | Yes     | (r ) Yes  | No      | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/
24 | vivaldi                                 | vivaldi                                                                            | Yes     | (r ) Yes  | Yes     | https://repo.vivaldi.com/archive/rpm/x86_64

tailscale repo file:

$ cat /etc/zypp/repos.d/tailscale-stable.repo 
[tailscale-stable]
name=Tailscale stable
enabled=1
autorefresh=0
baseurl=https://pkgs.tailscale.com/stable/opensuse/leap/$releasever/$basearch
type=rpm-md
gpgcheck=1
gpgkey=https://pkgs.tailscale.com/stable/opensuse/leap/$releasever/repo.gpg
keeppackages=0

thanks

zypper-upgraderepo does not know how to upgrade its own repo :)

not so important, but i noticed zypper-upgraderepo --check-next command fails for its own repo (all the others are fine):

$:/etc/zypp/repos.d> zypper upgraderepo --check-next
 St. |  # | Name                                                                                        | En. | Hint
------------------------------------------------------------------------------------------
 [E] |  1 | fabiomux                                                                                    |  Y  | Can't find a valid alternative, try manually!
------------------------------------------------------------------------------------------
 [V] |  2 | Packman Repository                                                                          |  Y  |
------------------------------------------------------------------------------------------
 [V] |  3 | google-chrome                                                                               |  Y  | Unversioned repository
------------------------------------------------------------------------------------------
 [V] |  4 | insync                                                                                      |  Y  | Unversioned repository
------------------------------------------------------------------------------------------
 [V] |  5 | localrepo                                                                                   |  Y  | Unversioned repository
------------------------------------------------------------------------------------------
 [V] |  6 | openSUSE-Leap-15.4                                                                          |  Y  |
------------------------------------------------------------------------------------------
 [V] |  7 | Libdvdcss Repository                                                                        |  Y  |
------------------------------------------------------------------------------------------
 [V] |  8 | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports |  N  |
------------------------------------------------------------------------------------------
 [V] |  9 | Update repository of openSUSE Backports                                                     |  Y  |
------------------------------------------------------------------------------------------
 [V] | 10 | openSUSE-Leap-15.4-Update-Debug                                                             |  N  |
------------------------------------------------------------------------------------------
 [V] | 11 | openSUSE-Leap-15.4-Non-Oss                                                                  |  Y  |
------------------------------------------------------------------------------------------
 [V] | 12 | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  |  N  |
------------------------------------------------------------------------------------------
 [V] | 13 | Update repository with updates from SUSE Linux Enterprise 15                                |  Y  |
------------------------------------------------------------------------------------------
 [V] | 14 | openSUSE-Leap-15.4-Source                                                                   |  N  |
------------------------------------------------------------------------------------------
 [V] | 15 | openSUSE-Leap-15.4-Source-Non-Oss                                                           |  N  |
------------------------------------------------------------------------------------------
 [V] | 16 | openSUSE-Leap-15.4-Update                                                                   |  Y  |
------------------------------------------------------------------------------------------
 [V] | 17 | openSUSE-Leap-15.4-Update-Non-Oss                                                           |  Y  |
------------------------------------------------------------------------------------------
 [V] | 18 | snappy                                                                                      |  Y  |
------------------------------------------------------------------------------------------
 [V] | 19 | TeamViewer - $basearch                                                                      |  Y  | Unversioned repository
------------------------------------------------------------------------------------------
 [V] | 20 | vivaldi                                                                                     |  Y  | Unversioned repository
------------------------------------------------------------------------------------------

its url:

$:/etc/zypp/repos.d> zypper lr -u
Repository priorities in effect:                                                                                                                                                                                                      (See 'zypper lr -P' for details)
      98 (raised priority)  :  1 repository
      99 (default priority) : 14 repositories

#  | Alias                                 | Name                                                                                        | Enabled | GPG Check | Refresh | URI
---+---------------------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+------------------------------------------------------------------------------
 1 | fabiomux                              | fabiomux                                                                                    | Yes     | ( p) Yes  | Yes     | https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.3/
 2 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository                                                                          | Yes     | (r ) Yes  | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.3/
 3 | google-chrome                         | google-chrome                                                                               | Yes     | (r ) Yes  | Yes     | https://dl.google.com/linux/chrome/rpm/stable/x86_64
 4 | insync                                | insync                                                                                      | Yes     | (r ) Yes  | Yes     | http://yum.insynchq.com/fedora/29
 5 | localrepo                             | localrepo                                                                                   | Yes     | ( p) Yes  | No      | dir:/home/m/localrepo
 6 | openSUSE-Leap-15.3                    | openSUSE-Leap-15.3                                                                          | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.3/repo/oss/
 7 | opensuse-guide.org-repo               | Libdvdcss Repository                                                                        | Yes     | (r ) Yes  | Yes     | http://opensuse-guide.org/repo/openSUSE_Leap_15.3/
 8 | repo-backports-debug-update           | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    | http://download.opensuse.org/update/leap/15.3/backports_debug/
 9 | repo-backports-update                 | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/backports/
10 | repo-debug-update                     | openSUSE-Leap-15.3-Update-Debug                                                             | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/oss/
11 | repo-non-oss                          | openSUSE-Leap-15.3-Non-Oss                                                                  | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/
12 | repo-sle-debug-update                 | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/sle/
13 | repo-sle-update                       | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/sle/
14 | repo-source                           | openSUSE-Leap-15.3-Source                                                                   | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.3/repo/oss/
15 | repo-source-non-oss                   | openSUSE-Leap-15.3-Source-Non-Oss                                                           | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.3/repo/non-oss/
16 | repo-update                           | openSUSE-Leap-15.3-Update                                                                   | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/oss/
17 | repo-update-non-oss                   | openSUSE-Leap-15.3-Update-Non-Oss                                                           | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/non-oss/
18 | snappy                                | snappy                                                                                      | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.3
19 | teamviewer                            | TeamViewer - x86_64                                                                         | Yes     | (r ) Yes  | No      | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/
20 | vivaldi                               | vivaldi                                                                                     | Yes     | (r ) Yes  | Yes     | https://repo.vivaldi.com/archive/rpm/x86_64

i think it could be because the 15.4 repo folder for zypper-upgraderepo is just called "15.4" instead of "openSUSE_Leap_15.4".

15.1 upgrade fails

hi,

the script does not work for the official repo's, it somehow pulls in MicroOS:

zypper upgraderepo -N
 St. |  # | Name                        | En. | Hint
------------------------------------------------------------------------------------------
 [V] |  1 | insync                      |  Y  |
------------------------------------------------------------------------------------------
 [V] |  2 | google-chrome               |  Y  |
------------------------------------------------------------------------------------------
 [V] |  3 | libdvdcss repository        |  Y  |
------------------------------------------------------------------------------------------
 [V] |  4 | Packman Repository          |  Y  |
------------------------------------------------------------------------------------------
 [V] |  5 | home:FabioMux               |  Y  |
------------------------------------------------------------------------------------------
 [E] |  6 | Non-OSS Repository          |  Y  | Override with this one
     |    |                             |     | http://download.opensuse.org/distribution/leap/15.2/microos/repo/MicroOS-15.2-aarch64-Media1/
------------------------------------------------------------------------------------------
 [E] |  7 | Main Repository             |  Y  | Override with this one
     |    |                             |     | http://download.opensuse.org/distribution/leap/15.2/microos/repo/MicroOS-15.2-aarch64-Media1/
------------------------------------------------------------------------------------------
 [E] |  8 | Main Update Repository      |  Y  | Override with this one
     |    |                             |     | http://download.opensuse.org/update/leap/15.2-test/
------------------------------------------------------------------------------------------
 [E] |  9 | Update Repository (Non-Oss) |  Y  | Override with this one
     |    |                             |     | http://download.opensuse.org/update/leap/15.2-test/
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------

these are my repos:

zypper lr -d
#  | Alias                                | Name                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                           | Service
---+--------------------------------------+-----------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------+--------
 1 | 27                                   | insync                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://yum.insynchq.com/fedora/27                                             | 
 2 | google-chrome                        | google-chrome               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                           | 
 3 | http-opensuse-guide.org-ebe26050     | libdvdcss repository        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.1/                            | 
 4 | http-packman.inode.at-ad231ebe       | Packman Repository          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.1/                              | 
 5 | https-download.opensuse.org-8feffade | home:FabioMux               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.1/ | 
 6 | repo-non-oss                         | Non-OSS Repository          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/non-oss/             | 
 7 | repo-oss                             | Main Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/oss/                 | 
 8 | repo-update                          | Main Update Repository      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/oss                             | 
 9 | repo-update-non-oss                  | Update Repository (Non-Oss) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/non-oss/                        | 
10 | teamviewer                           | TeamViewer - x86_64         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://linux.teamviewer.com/yum/stable/main/binary-x86_64/    

Error! undefined method `redirect' for Zypper::Upgraderepo::Messages:Class

I read about this tool in the openSuse lizards, and like the idea so much that I tried it out...
I did this:

zypper ar https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_42.3/home:FabioMux.repo
zypper in zypper-upgraderepo-plugin
The following 4 NEW packages are going to be installed:
  ruby2.1-rubygem-iniparse ruby2.1-rubygem-minitar ruby2.1-rubygem-zypper-upgraderepo zypper-upgraderepo-plugin
<Janus:/home/michiel # zypper upgraderepo --check-current
 St. |  # | Name                                         | Hint
------------------------------------------------------------------------------------------
 [V] |  1 | Education                                    |
------------------------------------------------------------------------------------------
 [V] |  2 | Geo                                          |
------------------------------------------------------------------------------------------
Error! undefined method 'redirect' for Zypper::Upgraderepo::Messages:Class
Janus:/home/michiel #

My list of repos is:

Janus:/home/michiel # zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                                         | Enabled | GPG Check | Refresh
---+-------------------------------------+----------------------------------------------+---------+-----------+--------
 1 | Education                           | Education                                    | Yes     | (r ) Yes  | Yes    
 2 | Geo                                 | Geo                                          | Yes     | (r ) Yes  | Yes    
 3 | Michiel_Simutrans_test              | Michiel Simutrans test                       | No      | ----      | ----   
 4 | OBS_Tools                           | OBS Tools                                    | Yes     | (r ) Yes  | Yes    
etc.

AIO command for upgrade

This plugin is a great step in the right direction!!!

But i would like, if possible, to have an all-in-one command that would perform all the steps.

Something like a zypper-upgraderepo --aiodup, for example...

this would perform a system update, then check if new repos are available, upgrade them, and finally do a zypper dup over that new repos...

I don't know if this is even possible... but it would be a good start to have something like ubuntu has (we would still be missing a notification of new OS available... but it would be a start...)

fails to resolve update repo (debug, non-oss)

again, not essential, but in the hope to improve the tool overall. on this box, repo 13 fails. funny thing is that similar repo's do not fail.

$ zypper upgraderepo --check-next
 St. |  # | Name                                                                                        | En. | Hint
------------------------------------------------------------------------------------------
 [V] |  1 | Visual Studio Code                                                                          |  Y  | Unversioned repository
------------------------------------------------------------------------------------------
 [V] |  2 | nVidia Graphics Drivers                                                                     |  Y  |
------------------------------------------------------------------------------------------
 [V] |  3 | Packman Repository                                                                          |  Y  |
------------------------------------------------------------------------------------------
 [E] |  4 | FabioMux's Home Project (15.4)                                                              |  Y  | Override with this one
     |    |                                                                                             |     | https://download.opensuse.org/repositories/home:/FabioMux/15.4/
------------------------------------------------------------------------------------------
 [V] |  5 | insync                                                                                      |  Y  | Unversioned repository
------------------------------------------------------------------------------------------
 [V] |  6 | Libdvdcss Repository                                                                        |  Y  |
------------------------------------------------------------------------------------------
 [E] |  7 | opensuse hardware repo                                                                      |  Y  | Override with this one
     |    |                                                                                             |     | https://download.opensuse.org/repositories/hardware/15.4/
------------------------------------------------------------------------------------------
 [V] |  8 | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports |  N  |
------------------------------------------------------------------------------------------
 [V] |  9 | Update repository of openSUSE Backports                                                     |  Y  |
------------------------------------------------------------------------------------------
 [V] | 10 | Debug Repository                                                                            |  N  |
------------------------------------------------------------------------------------------
 [V] | 11 | Debug Repository (Non-OSS)                                                                  |  N  |
------------------------------------------------------------------------------------------
 [V] | 12 | Update Repository (Debug)                                                                   |  N  |
------------------------------------------------------------------------------------------
 [E] | 13 | Update Repository (Debug, Non-OSS)                                                          |  N  | Can't find a valid alternative, try manually!
------------------------------------------------------------------------------------------
 [V] | 14 | Non-OSS Repository                                                                          |  Y  |
------------------------------------------------------------------------------------------
 [V] | 15 | Main Repository                                                                             |  Y  |
------------------------------------------------------------------------------------------
 [V] | 16 | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  |  N  |
------------------------------------------------------------------------------------------
 [V] | 17 | Update repository with updates from SUSE Linux Enterprise 15                                |  Y  |
------------------------------------------------------------------------------------------
 [V] | 18 | Source Repository                                                                           |  N  |
------------------------------------------------------------------------------------------
 [V] | 19 | Source Repository (Non-OSS)                                                                 |  N  |
------------------------------------------------------------------------------------------
 [V] | 20 | Main Update Repository                                                                      |  Y  |
------------------------------------------------------------------------------------------
 [V] | 21 | Update Repository (Non-Oss)                                                                 |  Y  |
------------------------------------------------------------------------------------------
 [V] | 22 | Tailscale stable                                                                            |  Y  |
------------------------------------------------------------------------------------------
 [V] | 23 | TeamViewer - x86_64                                                                         |  Y  | Unversioned repository
------------------------------------------------------------------------------------------
 [V] | 24 | vivaldi                                                                                     |  Y  | Unversioned repository
------------------------------------------------------------------------------------------

repo list:

$ zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                                   | Name                                                                          | Enabled | GPG Check | Refresh | URI
---+-----------------------------------------+-------------------------------------------------------------------------------+---------+-----------+---------+------------------------------------------------------------------------------
 1 | code                                    | Visual Studio Code                                                            | Yes     | (r ) Yes  | No      | https://packages.microsoft.com/yumrepos/vscode
 2 | download.nvidia.com-leap                | nVidia Graphics Drivers                                                       | Yes     | (r ) Yes  | Yes     | https://download.nvidia.com/opensuse/leap/15.3
 3 | ftp.gwdg.de-openSUSE_Leap_$releasever_1 | Packman Repository                                                            | Yes     | (r ) Yes  | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.3/
 4 | home_FabioMux                           | FabioMux's Home Project (15.3)                                                | Yes     | (r ) Yes  | No      | https://download.opensuse.org/repositories/home:/FabioMux/openSUSE_Leap_15.3/
 5 | insync                                  | insync                                                                        | Yes     | (r ) Yes  | Yes     | http://yum.insynchq.com/fedora/27
 6 | opensuse-guide.org-repo                 | Libdvdcss Repository                                                          | Yes     | (r ) Yes  | Yes     | http://opensuse-guide.org/repo/openSUSE_Leap_15.3/
 7 | opensuse-hw                             | opensuse hardware repo                                                        | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/hardware/openSUSE_Leap_15.3/
 8 | repo-backports-debug-update             | Update repository with updates for openSUSE Leap debuginfo packages from op-> | No      | ----      | ----    | http://download.opensuse.org/update/leap/15.3/backports_debug/
 9 | repo-backports-update                   | Update repository of openSUSE Backports                                       | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/backports/
10 | repo-debug                              | Debug Repository                                                              | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.3/repo/oss/
11 | repo-debug-non-oss                      | Debug Repository (Non-OSS)                                                    | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.3/repo/non-oss/
12 | repo-debug-update                       | Update Repository (Debug)                                                     | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/oss/
13 | repo-debug-update-non-oss               | Update Repository (Debug, Non-OSS)                                            | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/non-oss/
14 | repo-non-oss                            | Non-OSS Repository                                                            | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/
15 | repo-oss                                | Main Repository                                                               | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.3/repo/oss/
16 | repo-sle-debug-update                   | Update repository with debuginfo for updates from SUSE Linux Enterprise 15    | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.3/sle/
17 | repo-sle-update                         | Update repository with updates from SUSE Linux Enterprise 15                  | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/sle/
18 | repo-source                             | Source Repository                                                             | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.3/repo/oss/
19 | repo-source-non-oss                     | Source Repository (Non-OSS)                                                   | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.3/repo/non-oss/
20 | repo-update                             | Main Update Repository                                                        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/oss
21 | repo-update-non-oss                     | Update Repository (Non-Oss)                                                   | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.3/non-oss/
22 | tailscale-stable                        | Tailscale stable                                                              | Yes     | (r ) Yes  | No      | https://pkgs.tailscale.com/stable/opensuse/leap/15.3/x86_64
23 | teamviewer                              | TeamViewer - x86_64                                                           | Yes     | (r ) Yes  | No      | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/
24 | vivaldi                                 | vivaldi                                                                       | Yes     | (r ) Yes  | Yes     | https://repo.vivaldi.com/archive/rpm/x86_64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.