How to search from repositories for rpms to be installed without dnf in Silverblue

Hi
I’m using Fedora Silverblue hence there is no dnf command but rpm-ostree to install programs from their rpm (for those neither shipped by flatpak nor Gnome SoftWare).

Under Fedora Workstation I could, using dnf :

  • add repositories like rpmfusion:
    dnf -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
  • search/query repositories :
    dnf search gnome | grep extension

Under Fedora Silverblue, and the advantages of ostrees, the installation of rpms uses a different paradigm since rpm-ostree install would need to create a new ostree and a full system reboot

So, my questions:

  1. How do I add repositories to my Fedora installation database without having to install a rpm for it, the use case exemple here is rpmfusion since I need it to install e.g. video/audio codecs and many useful binaries ?

  2. How do I query theses repositories once they’ve been added with a command that would replace dnf search ?

Thanks for your help !

1 Like

Look here: Frequently Asked Questions (FAQ) :: Fedora Docs
" How can I check if an rpm software package is available in the repository?"

2 Likes

Thanks @alciregi

And here is the content to share with others having the same questions

Fedora Silverblue / FAQ
Go to:
How can I check if an rpm software package is available in the repository?

At this point in time, there is no rpm package search function built into rpm-ostree. However, you can use toolbox with the following command:

$ toolbox run dnf search <package>