How to best rebase from f34 to f35 with layered rpm packages?

Hi,

I am currently running f34 silverblue with some layered rpm packages and am planning to upgrade to f35 when it is GA.

$ RPMS="libvirt virt-manager virt-top virt-viewer python3-libguestfs libvirt-daemon-kvm qemu-kvm libvirt-daemon-config-network libguestfs-tools virt-install fedora-workstation-repositories gnome-tweaks power-profiles-daemon google-chrome-stable"

What will be the correct (or best) way to rebase from f34 to f35 with these layered rpm packages?

(1) Just rebase - ignoring the layered rpm packages?

$ rpm-ostree rebase fedora:fedora/35/x86_64/silverblue
$ systemctl reboot

(2) Uninstall layered rpm packages, rebase, reinstall layered rpm packages?

$ rpm-ostree uninstall $RPMS
$ systemctl reboot
$ rpm-ostree rebase fedora:fedora/35/x86_64/silverblue
$ systemctl reboot
$ rpm-ostree install $RPMS
$ systemctl reboot

(3) Reset layered rpm packages, rebase, reinstall layered rpm packages?

$ rpm-ostree reset
$ systemctl reboot
$ rpm-ostree rebase fedora:fedora/35/x86_64/silverblue
$ systemctl reboot
$ rpm-ostree install $RPMS
$ systemctl reboot

(4) Uninstall rpms, rebase, reinstall rpms in a single command?

$ rpm-ostree rebase fedora:fedora/35/x86_64/silverblue \
    $(echo $RPMS | xargs -n1 echo "--uninstall") \
    $(echo $RPMS | xargs -n1 echo "--install")
$ systemctl reboot

Are those many reboots in cases (2) and (3) all necessary?

best regards
Armin.

In most cases you can just use rebase directly and that should work. In any case, rpm-ostree will warn you in case of issues and abort the transaction. Option 3 is usually a good workaround when facing hard to work around issues.

2 Likes

Rebase should just work. The only issue with the rebase was from fedora 33 to fedora 34 when there was a rpmdb backend switch. In some cases rpm-ostree did not handle it correctly, so in some cases uninstall of overlay packages was needed. But there is no issue while upgrade from 34 to 35

1 Like

Rebasing to f35 worked like charm, no problems detected after some hours of working with it. A.

1 Like