automatically adjust repositories for update 15.3 -> 15.5?
I want to update my main machine from 15.3 to 15.5 without a new install. As much as I know it is easy: - change the 15.3 repositories to 15.4 repos - run zypper dup - change 15.4 repos to 15.5 repos - run zypper dup That's it. Am I right? Is there am automatic way to change all repos from one version to a new one, so that I don't have to search for all of them and do it manually? Have a nice day! Daniel -- Daniel Bauer photographer Basel Málaga Twitter: @Marsfotografo (often explicit nudes) https://www.patreon.com/danielbauer https://www.daniel-bauer.com (nudes)
On 26.08.2023 16:06, Daniel Bauer wrote:
I want to update my main machine from 15.3 to 15.5 without a new install.
As much as I know it is easy:
- change the 15.3 repositories to 15.4 repos - run zypper dup - change 15.4 repos to 15.5 repos - run zypper dup
That's it. Am I right?
Is there am automatic way to change all repos from one version to a new one, so that I don't have to search for all of them and do it manually?
If all your repositories consistently use $releasever placeholder, you can just follow openSUSE wiki and do "zypper dup --releasever 15.5".
On Sat, 26 Aug 2023 16:19:39 +0300, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
On 26.08.2023 16:06, Daniel Bauer wrote:
I want to update my main machine from 15.3 to 15.5 without a new install.
As much as I know it is easy:
- change the 15.3 repositories to 15.4 repos - run zypper dup - change 15.4 repos to 15.5 repos - run zypper dup
That's it. Am I right?
Is there am automatic way to change all repos from one version to a new one, so that I don't have to search for all of them and do it manually?
If all your repositories consistently use $releasever placeholder, you can just follow openSUSE wiki and do "zypper dup --releasever 15.5".
https://en.opensuse.org/SDB:System_upgrade -- Robert Webb
Daniel Bauer composed on 2023-08-26 15:06 (UTC+0200):
I want to update my main machine from 15.3 to 15.5 without a new install.
As much as I know it is easy:
- change the 15.3 repositories to 15.4 repos - run zypper dup - change 15.4 repos to 15.5 repos - run zypper dup
That's it. Am I right?
That's the traditional way, which still works, and I used just last night to upgrade an installation from 15.5 to 15.6 alpha. Andrei described the new $releasever/--releasever method.
Is there am automatic way to change all repos from one version to a new one, so that I don't have to search for all of them and do it manually?
sudo sed -i 's/15.3/15.4/g' /etc/zypp/repos.d/*repo -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 2023-08-26 13:37, Felix Miata wrote:
Daniel Bauer composed on 2023-08-26 15:06 (UTC+0200):
I want to update my main machine from 15.3 to 15.5 without a new install.
As much as I know it is easy:
- change the 15.3 repositories to 15.4 repos - run zypper dup - change 15.4 repos to 15.5 repos - run zypper dup
That's it. Am I right?
That's the traditional way, which still works, and I used just last night to upgrade an installation from 15.5 to 15.6 alpha. Andrei described the new $releasever/--releasever method.
That method doesn't always work for me. I would test by doing: zypper refresh --force --releasever 15.5 (I don't know if I got the syntax correct, I have bad internet, so can't test) Check in the output that all repos refresh correctly. If some don't, edit it. Me, I prefer the manual method.
Is there am automatic way to change all repos from one version to a new one, so that I don't have to search for all of them and do it manually?
sudo sed -i 's/15.3/15.4/g' /etc/zypp/repos.d/*repo
Yep. Then, read https://en.opensuse.org/SDB:System_upgrade https://en.opensuse.org/SDB:System_upgrade_to_Leap_15.4 You can also boot the DVD, and choose "upgrade": https://en.opensuse.org/SDB:Offline_upgrade -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
On 2023-08-28 08:41, Carlos E. R. wrote:
On 2023-08-26 13:37, Felix Miata wrote:
Daniel Bauer composed on 2023-08-26 15:06 (UTC+0200):
I want to update my main machine from 15.3 to 15.5 without a new install.
Then, read
https://en.opensuse.org/SDB:System_upgrade https://en.opensuse.org/SDB:System_upgrade_to_Leap_15.4
I forgot to stress that you should read the link above about upgrade to 15.4, there were important changes, there were added repos IIRC. Better to activate those before upgrading, instead of letting the upgrade activate them (going from memory after waking up ;-) ) -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
On 8/28/23 15:05, Carlos E. R. wrote:
On 2023-08-28 08:41, Carlos E. R. wrote:
On 2023-08-26 13:37, Felix Miata wrote:
Daniel Bauer composed on 2023-08-26 15:06 (UTC+0200):
I want to update my main machine from 15.3 to 15.5 without a new install.
Then, read
https://en.opensuse.org/SDB:System_upgrade https://en.opensuse.org/SDB:System_upgrade_to_Leap_15.4
I forgot to stress that you should read the link above about upgrade to 15.4, there were important changes, there were added repos IIRC. Better to activate those before upgrading, instead of letting the upgrade activate them (going from memory after waking up ;-) )
The main issue with upgrading from pre-15.4 to 15.5 is not getting the new repository signing keys automatically installed using an update of the openSUSE-build-key package. The easiest solution is to import them directly via http from the links mentioned in the wiki article using `rpm --import <url>`. Alternatively one can copy them from an updated 15.4 or 15.5 system. Afterwards upgrading to 15.5 should not pose an issue, besides possible obstacles if non-standard repositories are at play. I'm not aware of added repositories.
On 2023-08-28 13:00, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/28/23 15:05, Carlos E. R. wrote:
On 2023-08-28 08:41, Carlos E. R. wrote:
On 2023-08-26 13:37, Felix Miata wrote:
Daniel Bauer composed on 2023-08-26 15:06 (UTC+0200):
I want to update my main machine from 15.3 to 15.5 without a new install.
Then, read
https://en.opensuse.org/SDB:System_upgrade https://en.opensuse.org/SDB:System_upgrade_to_Leap_15.4
I forgot to stress that you should read the link above about upgrade to 15.4, there were important changes, there were added repos IIRC. Better to activate those before upgrading, instead of letting the upgrade activate them (going from memory after waking up ;-) )
The main issue with upgrading from pre-15.4 to 15.5 is not getting the new repository signing keys automatically installed using an update of the openSUSE-build-key package. The easiest solution is to import them directly via http from the links mentioned in the wiki article using `rpm --import <url>`. Alternatively one can copy them from an updated 15.4 or 15.5 system. Afterwards upgrading to 15.5 should not pose an issue, besides possible obstacles if non-standard repositories are at play. I'm not aware of added repositories.
Yes, that was on another previous version upgrade, I forget which. 15.1 probably. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
participants (6)
-
Andrei Borzenkov
-
Carlos E. R.
-
Daniel Bauer
-
Felix Miata
-
Georg Pfuetzenreuter
-
Robert Webb