fedora-silverblue / silverblue-docs

Fedora Silverblue documentation
https://docs.fedoraproject.org/en-US/fedora-silverblue/
63 stars 76 forks source link

tips: add instructions for using RPM Fusion #137

Closed miabbott closed 1 year ago

miabbott commented 1 year ago

I've (anecdotally) seen a number of folks complaining about using RPM Fusion with Silverblue and the challenges that come with that.

Let's just admit the obvious and give users the straight-forward way of enabling the repos.

travier commented 1 year ago

We can simplify the second command with the one in https://discussion.fedoraproject.org/t/simplifying-updates-for-rpm-fusion-packages-and-other-packages-shipping-their-own-rpm-repos/30364/34?u=siosm:

$ sudo rpm-ostree update \
    --uninstall rpmfusion-free-release \
    --uninstall rpmfusion-nonfree-release \
    --install rpmfusion-free-release \
    --install rpmfusion-nonfree-release
travier commented 1 year ago

Maybe we should provide our own full set of commands until this is fixed in the RPM Fusion Wiki.

travier commented 1 year ago

The "correct" and complete way of setting this up right directly is:

# Install RPM Fusion repos
$ sudo rpm-ostree install \
    https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
    https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
$ reboot

# Replace the versioned local packages by overlayed packages from the repo
$ sudo rpm-ostree update \
    --uninstall rpmfusion-free-release \
    --uninstall rpmfusion-nonfree-release \
    --install rpmfusion-free-release \
    --install rpmfusion-nonfree-release
$ reboot
miabbott commented 1 year ago

We can simplify the second command with the one in https://discussion.fedoraproject.org/t/simplifying-updates-for-rpm-fusion-packages-and-other-packages-shipping-their-own-rpm-repos/30364/34?u=siosm:

$ sudo rpm-ostree update \
  --uninstall rpmfusion-free-release \
  --uninstall rpmfusion-nonfree-release \
  --install rpmfusion-free-release \
  --install rpmfusion-nonfree-release

Good catch; I was just copy/pasting from the top comment on that thread.

miabbott commented 1 year ago

Updated with Timothee's suggestions :arrow_up:

tpopela commented 1 year ago

This is definitely an improvement, but I don't know whether we rather shouldn't fix the RPMFusion wiki instead - specifically the https://rpmfusion.org/Howto/OSTree linked from https://rpmfusion.org/Configuration. Also https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/ might need a "OSTree based" specific section as well. I would also like to see a header section as in the Fedora Docs:

"" This page discusses third-party software sources not officially affiliated with or endorsed by the Fedora Project. Use them at your own discretion. Fedora recommends the use of free and open source software and avoidance of software encumbered by patents. ""

We could take as it is only replacing the "This page" with "This section".

travier commented 1 year ago

@tpopela See https://discussion.fedoraproject.org/t/simplifying-updates-for-rpm-fusion-packages-and-other-packages-shipping-their-own-rpm-repos/30364/32?u=siosm. I don't feel good pinging folks so many times and I can not edit the Wiki.

travier commented 1 year ago

Linking https://github.com/coreos/rpm-ostree/issues/1978 here too

travier commented 1 year ago

We should try to find another workaround that does not involve two reboots.

miabbott commented 1 year ago

This is definitely an improvement, but I don't know whether we rather shouldn't fix the RPMFusion wiki instead - specifically the https://rpmfusion.org/Howto/OSTree linked from https://rpmfusion.org/Configuration. Also https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/ might need a "OSTree based" specific section as well. I would also like to see a header section as in the Fedora Docs:

"" This page discusses third-party software sources not officially affiliated with or endorsed by the Fedora Project. Use them at your own discretion. Fedora recommends the use of free and open source software and avoidance of software encumbered by patents. ""

We could take as it is only replacing the "This page" with "This section".

https://pagure.io/fedora-docs/quick-docs/pull-request/505

miabbott commented 1 year ago

Updated with the warning message :arrow_up:

tpopela commented 1 year ago

Thank you @miabbott !!