Bug #121052 Incorrect dnf config-manager commands
Submitted: 4 Aug 6:29 Modified: 5 Aug 8:27
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:26.7.0 OS:Any
Assigned to: Edward Gilmore CPU Architecture:Any
Tags: yum, yum repo

[4 Aug 6:29] Daniël van Eeden
Description:
Page: https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

This page says:

----------------------------------------------------------------------
$> sudo dnf config-manager --disable mysql-9.7-lts-community
$> sudo dnf config-manager --disable mysql-tools-9.7-lts-community

$> sudo dnf config-manager --enable mysql-innovation-community
$> sudo dnf config-manager --enable mysql-tools-innovation-community
----------------------------------------------------------------------

On Fedora 44 this results in:
----------------------------------------------------------------------
[root@d130262cda9b /]# sudo dnf config-manager --disable mysql-9.7-lts-community
Unknown argument "--disable" for command "config-manager". Add "--help" for more information about the arguments.
----------------------------------------------------------------------

More info

----------------------------------------------------------------------
[root@d130262cda9b /]# sudo dnf config-manager -h
Usage:
  dnf5 [GLOBAL OPTIONS] config-manager <COMMAND> ...

Description:
  Manage main and repositories configuration, variables and add new repositories.
                                
Commands:                       
  addrepo                       Add repositories from the specified configuration file or define a new repository using user options
  setopt                        Set configuration and repositories options
  unsetopt                      Unset/remove configuration and repositories options
  setvar                        Set variables
  unsetvar                      Unset/remove variables
  enable                        Enables repositories
  disable                       Disables repositories
[root@d130262cda9b /]# dnf --version
dnf5 version 5.4.2.1
dnf5 plugin API version 2.0
libdnf5 version 5.4.2.1
libdnf5 plugin API version 2.2

Loaded dnf5 plugins:
  name: builddep
  version: 1.0.0
  API version: 2.0

  name: changelog
  version: 1.0.0
  API version: 2.0

  name: config-manager
  version: 0.1.0
  API version: 2.0

  name: copr
  version: 0.1.0
  API version: 2.0

  name: needs_restarting
  version: 1.0.0
  API version: 2.0

  name: repoclosure
  version: 1.0.0
  API version: 2.0

  name: repomanage
  version: 1.0.0
  API version: 2.0

  name: reposync
  version: 1.0.0
  API version: 2.0
[root@d130262cda9b /]# 
----------------------------------------------------------------------

How to repeat:
follow yum install guide on Fedora 44 for the innovation series

Suggested fix:
Probably replace `--disable` with `disable` and `--enable` with `enable`
[5 Aug 4:12] Balasubramanian Kandasamy
Acknowledged. Thanks for the bug report.
[5 Aug 8:27] Edward Gilmore
Posted by developer:
 
Documentation updated as requested.
Thank you for the bug report.