Anyway to upgrade 15.4 to 15.5 via command line?? anything other than fresh install?

Thanks for the replies . . . obviously yes, “the changes could have been made already” . . . except that 15.5 isn’t ready??? So we have time to “discuss amongst ourselves” . . . for some time to come apparently.

I have posted similar questions here in the forum about edits/changing the repos to upgrade and got mostly, “you can’t get there from here,” types of answers . . . here now the code was provided to make those changes with a simple command . . . .

@mrmazda, et al:

So I guess the Leap 15.5 repos are not ready for prime time yet?? I ran the sed command above, after deleting Packman, which was the only “releasever” item in the repos . . . did the zyp clean and ref . . . and then a dup -l . . . and it showed “93” packages to upgrade . . . figured that was “low” for a boost up . . . ran them through. Shut down.

On reboot grub was still saying “Leap 15.4” and it took a minute, but the GUI loaded. Checked YaST Software Repos and it showed “15.5.1” . . . as a line item, but it was marked as “enabled,” so I enabled it. Went to the console and ran a zypper ref and got: error:

Retrieving repository 'openSUSE-Leap-15.5-1' metadata ...................[error]
Repository 'openSUSE-Leap-15.5-1' is invalid.
[openSUSE-Leap-15.5-1|hd:/?device=/dev/disk/by-id/usb-SanDisk_Ultra_0401636afb9806f0eaccdde17e936e88fa99354b483d73f262d992740e720ae2378700000000000000000000005c447c00858b18815581074b296eaf-0:0-part2] Valid metadata not found at specified URL
History:
 - Unknown error reading from 'hd:/?device=/dev/disk/by-id/usb-SanDisk_Ultra_0401636afb9806f0eaccdde17e936e88fa99354b483d73f262d992740e720ae2378700000000000000000000005c447c00858b18815581074b296eaf-0:0-part2'
 - Empty destination in URI: hd:/?device=/dev/disk/by-id/usb-SanDisk_Ultra_0401636afb9806f0eaccdde17e936e88fa99354b483d73f262d992740e720ae2378700000000000000000000005c447c00858b18815581074b296eaf-0:0-part2

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'openSUSE-Leap-15.5-1' because of the above error.


The system is working, as I’m logged in to . . . what, a system half way between 15.4 and 15.5?? Or, 15.4 that has “15.5” in the repos??? I also ran a grub2-mkconfig to see if that would adjust grub . . . going fot the test shut down now.

I converted 3 15.4s to 15.5 8 or 9 days ago. All my configured repos worked fine. There were not a lot of changes from 15.4. IOW, most packages are still the same packages as in 15.4, or at least, they were then.

It looks like you still have installation media configured as a repo. Remove or disable it.

@mrmazda:

Right, I thought I had seen a post from you stating that, so I moved forward with it . . . .

But, why then was the “15.5” not “enabled” in the repos . . . and why the error, “not found” after I enabled it??? Does it matter if it is enabled or not??? Seems like it should?

Thanks for the comment on the install media . . . I don’t know of any time when I personally went in and deleted that from the repos?? It doesn’t show up in the “zypper ref” and I don’t recall any comment from any wiki or forum post saying “be sure to remove the install media from the repos”???

Obviously it is easy enough to do, but would having that left in the repos (as probably most of my installs still have that) cause an error??? Or, it’s just “untidy” computer craft and takes up data space that could be used by those with something positive to contribute to the system???

PS: It seemed that the Leap “Community” link was working to add Packman to the repos . . . didn’t have to add it manually as I did with the recent TW upgrade.

@mrmazda:

So, back in the Leap 15.4/.5 ball park . . . looking at your suggestion to remove the “installation media” data that is showing up in the Leap 15.5.1 line . . . showing it as “usb” . . . ??? But, in this case, there was no “installation” . . . I ran your “sed” command changing 15.4 to 15.5 . . . and then ran a zypper dup -l for 93 packages . . . .

So, the question is, what to change the “url” of the Leap 15.5 repo to?? I’m looking in YaST Software Repos and all of the other lines are still showing listed as “/15.4” . . . but with the various options “oss” “non-oss” . . . “backports” which one of those would I pick to set the new 15.5 URL address to?

And, then, the 15.5 line is showing as “not enabled”??? So, I need to set a proper URL address for it, and then “enable” it??? To then get all of the other repos to show up as 15.4??? Or, it’s OK that some of them are showing 15.4 and only the one not enabled line is showing as 15.5??

sudo zypper repos
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                                 | Name                         | Enabled | GPG Check | Refresh
---+---------------------------------------+------------------------------+---------+-----------+--------
 1 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository           | Yes     | (r ) Yes  | Yes
 2 | openSUSE-Leap-15.5-1                  | openSUSE-Leap-15.5-1         | No      | ----      | ----
 3 | repo-backports-debug-update           | Update repository of openS-> | No      | ----      | ----
 4 | repo-backports-update                 | Update repository of openS-> | Yes     | (r ) Yes  | Yes
 5 | repo-debug                            | Debug Repository             | No      | ----      | ----
 6 | repo-debug-non-oss                    | Debug Repository (Non-OSS)   | No      | ----      | ----
 7 | repo-debug-update                     | Update Repository (Debug)    | No      | ----      | ----
 8 | repo-debug-update-non-oss             | Update Repository (Debug, -> | No      | ----      | ----
 9 | repo-non-oss                          | Non-OSS Repository           | Yes     | (r ) Yes  | Yes
10 | repo-oss                              | Main Repository              | Yes     | (r ) Yes  | Yes
11 | repo-sle-debug-update                 | Update repository with upd-> | No      | ----      | ----
12 | repo-sle-update                       | Update repository with upd-> | Yes     | (r ) Yes  | Yes
13 | repo-source                           | Source Repository            | No      | ----      | ----
14 | repo-update                           | Main Update Repository       | Yes     | (r ) Yes  | Yes
15 | repo-update-non-oss                   | Update Repository (Non-Oss)  | Yes     | (r ) Yes  | Yes


For most people, these are the required/desired basics:

# grep istColumns /etc/zypp/zypper.conf
 repoListColumns = au
# zypper lr -aU
...
# | Alias     | Enabled | GPG Check | URI
--+-----------+---------+-----------+-----------------------------------------------------------------------------
1 | NonOSS    | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.5/repo/non-oss/
2 | OSS       | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.5/repo/oss/
5 | UpdateBP  | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.5/backports/
4 | Update    | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.5/oss/
6 | UpdateSLE | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.5/sle/
3 | PackmanE  | Yes     | ( p) Yes  | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/Essentials

Showing zypper.conf content is simply a display of prerequisite to getting zypper lr or repos to produce a relatively compact repo list sorted by URI, so no line breaks in my windows. :slight_smile:

It really is of no import how you achieve it. When the existing repos are all appropriate for a 15.4 installation from which to upgrade, sed is a simple way to go. If not, individual files in /etc/zypp/repos.d/ will need to be added, removed or edited, either directly with a suitably permissioned editor, or indirectly via YaST.

@mrmazda:

I tried out a few of your commands . . . but wound up in YaST “edit” wherein I changed “$Releasever” to “15.5” . . . through my enabled listings, perhaps a couple more than you have. They all went through except for the Packman data you showed, so I deleted Packman, and then deleted the “usb installer 15.5” listing.

Went to the console, zypper ref/dup -l and it showed “603 packages” . . . went through fairly fast. Shut down.

On cold boot grub shows “15.5 Alpha” and logged in to GUI . . . so thanks for that assist. I thought I had to keep that “15.5” item that was “installer related” as that was the only item that got changed by running the “sed” command . . .??? I guess the raw URL’s for most of the items were something as “$releasever” ??? but that only showed up when editing in YaST . . . .

Have to add Packman back in . . . and seems like there was or now are two menu applets in the MATE toolbar . . . but seemingly we have achieved “Alpha level” system. : - )

PS: Seems like now that we are in Alpha, that Packman isn’t adding in via YaST, the way it did when I thought I was in 15.5, but was actually still in 15.4 . . . guess I’ll have to add it “manually” like I did for TW???

Visit http://ftp.gwdg.de/pub/linux/misc/packman/suse/ and you’ll see Packman for 15.5 hasn’t yet been configured.

@mrmazda:

Alrighty . . . I was just following your posted config for Packman and YaST rejected it, or rather gave me the option to try another address for it.

So, right now, no reason to try to add Packman in, manually or any way . . . because for 15.5 it just ain’t theyare yet???