Can't enable fedora-cisco-openh264

I downloaded fedora recently, and am following the guide in this link:

Under H/W Video Acceleration and OpenH264 for Firefox there is a command that I need to write:

  • sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1

But when I use this command I get an error like this:

usage: dnf config-manager [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins]
                          [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER]
                          [--setopt SETOPTS] [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C]
                          [-R [minutes]] [-d [debug level]] [--debugsolver] [--showduplicates] [-e ERRORLEVEL]
                          [--obsoletes] [--rpmverbosity [debug level name]] [-y] [--assumeno] [--enablerepo [repo]]
                          [--disablerepo [repo] | --repo [repo]] [--enable | --disable] [-x [package]]
                          [--disableexcludes [repo]] [--repofrompath [repo,path]] [--noautoremove] [--nogpgcheck]
                          [--color COLOR] [--refresh] [-4] [-6] [--destdir DESTDIR] [--downloadonly]
                          [--comment COMMENT] [--bugfix] [--enhancement] [--newpackage] [--security]
                          [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES]
                          [--sec-severity {Critical,Important,Moderate,Low}] [--forcearch ARCH] [--save]
                          [--add-repo URL] [--dump] [--dump-variables] [--set-enabled | --set-disabled]
                          [section ...]
Command line error: one of the following arguments is required: --save --add-repo --dump --dump-variables --set-enabled --enable --set-disabled --disable

How can I resolve this problem?

Thank you in advance.

Have a look in /etc/yum.repos.d/

fedora-cisco-openh264 should be there and installed already.

run

sudo dnf update

and you will see the repos loading, do you see fedora-cisco-openh264 there as the third line or so?

You can read more about repos at Adding or removing software repositories in Fedora :: Fedora Docs

Welcome to the Foums :slight_smile:

Could it be that you’re not on F41? The mentioned command has the dnf5 syntax, provided with F41, while the command line error above seems to be issued by dnf4, used by F40 and earlier versions.

However, dnf repolist might indicate that the fedora-cisco-openh264 is already active. If not, check the usage for dnf4 (see man dnf config-manager).

1 Like

I think I see a typo there.
It should be sudo dnf config-manager --setopt fedora-cisco-openh264.enabled=1 if you are on fedora 40 using dnf4 and sudo dnf config-manager setopt fedora-cisco-openh264.enabled=1 if on f41 and using dnf5 (the default for f41). The switch from dnf4 to dnf5 changed the mandatory syntax.

Notice the prompt you got within the error message

I edited your post to add the preformatted text tags to that output so it appears here exactly as you saw it on screen. Please use those tags (available with the </> button on the toolbar) when copying text and pasting it here. Doing so keeps everything so it is much more readable.

So it looks like dnf5 doesnt know the setopt argument? Please report a bug so that people can look at it.

bugz.fedoraproject.org/dnf5

It seems the OP is using dnf4, not dnf5:

dnf4 config-manager some-missing-subcommand
usage: dnf config-manager [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins]
                          [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER] [--setopt SETOPTS]
                          [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]] [-d [debug level]] [--debugsolver]
                          [--showduplicates] [-e ERRORLEVEL] [--obsoletes] [--rpmverbosity [debug level name]] [-y] [--assumeno]
                          [--enablerepo [repo]] [--disablerepo [repo] | --repo [repo]] [--enable | --disable] [-x [package]]
                          [--disableexcludes [repo]] [--repofrompath [repo,path]] [--noautoremove] [--nogpgcheck] [--color COLOR]
                          [--refresh] [-4] [-6] [--destdir DESTDIR] [--downloadonly] [--comment COMMENT] [--bugfix] [--enhancement]
                          [--newpackage] [--security] [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES]
                          [--sec-severity {Critical,Important,Moderate,Low}] [--forcearch ARCH] [--save] [--add-repo URL] [--dump]
                          [--dump-variables] [--set-enabled | --set-disabled]
                          [section ...]
Command line error: one of the following arguments is required: --save --add-repo --dump --dump-variables --set-enabled --enable --set-disabled --disable
dnf5 config-manager some-missing-subcommand
Unknown argument "some-missing-subcommand" for command "config-manager". Add "--help" for more information about the arguments.
2 Likes

In dnf4 the command as given is invalid. --setopt would be correct. setopt is not correct for dnf4 but is for dnf5.
(Edited this post and my post above to correct my error)

See my post just above yours.

RTFM man dnf-config-manager

       dnf5 config-manager setopt repoid1.enabled=1 repoid2.enabled=0
              Sets override to enable repository identified by repoid1 and disable repository identified by repoid2.
1 Like

Thanks Villy. I edited my 2 posts above to reflect the changed syntax and refer to the proper dnf version.

Perhaps it should be added that the configuration changes will be written in a new override file in /etc/dnf/repos.override.d/99-config_manager.repo and the original files /etc/yum.repos.d will be untuched.

1 Like

I saw that part earlier when investigating the config-manager actions with dnf5.
Thanks for reminding everyone.