Bug 1830530 - request to re-introduce functionality - dnf [config-manager] --enable/disablerepo a-repo,b-repo,some*
Summary: request to re-introduce functionality - dnf [config-manager] --enable/disable...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 32
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Nicola Sella
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-02 14:39 UTC by lejeczek
Modified: 2020-10-27 01:20 UTC (History)
11 users (show)

Fixed In Version: dnf-4.4.0-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-18 15:49:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description lejeczek 2020-05-02 14:39:41 UTC
Description of problem:

Same as yum is capable of.

many thanks, L.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nicola Sella 2020-05-04 12:45:36 UTC
Hello, could you please be more precise on your request? The options --enable/--set-enable and --disable/--set-disable for config-manager are currently implemented.

If this was not what you asked please, update with more info. Thank you.

Comment 2 lejeczek 2020-05-06 12:11:27 UTC
Hi.
Yes, further down the cmd line args. With 'yum' we could, maybe still can, do:

yum-config-manager --disable one,two,three\* (those ',' give a nice one-liner(s))

regards,L.

Comment 3 Nicola Sella 2020-05-11 17:06:30 UTC
PR: https://github.com/rpm-software-management/dnf-plugins-core/pull/397
test: https://github.com/rpm-software-management/ci-dnf-stack/pull/828

note:
it is already possible to run dnf config-manager --enable repo1 repo2 
now dnf config-manager --enable repo1, repo2 works too

Comment 4 lejeczek 2020-05-11 17:31:02 UTC
And I wonder when would that trickle down to what is in OSes' repos?

This does not do anything:

$ dnf config-manager --disablerepo PowerTools,Stream-PowerTools --save
nor this:
$ dnf config-manager --disablerepo PowerTools Stream-PowerTools --save

and this:

$ dnf config-manager --set-disabled PowerTools,Stream-PowerTools --save
Error: No matching repo to modify: PowerTools,Stream-PowerTools.

That is with version 4.2.17 which in that respect feels bit messy.

Comment 5 Fedora Update System 2020-10-08 11:59:15 UTC
FEDORA-2020-b40fc174b5 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b40fc174b5

Comment 6 Fedora Update System 2020-10-08 12:00:14 UTC
FEDORA-2020-5d9f0ce2b3 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-5d9f0ce2b3

Comment 7 Fedora Update System 2020-10-08 22:19:38 UTC
FEDORA-2020-b40fc174b5 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b40fc174b5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b40fc174b5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2020-10-12 21:15:47 UTC
FEDORA-2020-b40fc174b5 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b40fc174b5

Comment 9 Fedora Update System 2020-10-12 21:23:23 UTC
FEDORA-2020-5d9f0ce2b3 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-5d9f0ce2b3

Comment 10 Fedora Update System 2020-10-12 22:45:09 UTC
FEDORA-2020-b40fc174b5 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b40fc174b5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b40fc174b5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2020-10-13 20:18:06 UTC
FEDORA-2020-5d9f0ce2b3 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-5d9f0ce2b3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-5d9f0ce2b3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2020-10-18 15:49:10 UTC
FEDORA-2020-5d9f0ce2b3 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2020-10-19 16:53:24 UTC
FEDORA-2020-b40fc174b5 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b40fc174b5

Comment 14 Fedora Update System 2020-10-20 14:22:42 UTC
FEDORA-2020-b40fc174b5 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b40fc174b5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b40fc174b5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Carl George 🤠 2020-10-25 02:56:30 UTC
@lejeczek

> And I wonder when would that trickle down to what is in OSes' repos?

This bug is for Fedora.  To request backporting this to CentOS Stream, please open a new bugzilla against the "CentOS Stream" version of the "Red Hat Enterprise 8" product, as described in the FAQ [0].  I agree that it would be a good feature, but it's not up to me.

> This does not do anything:
> 
> $ dnf config-manager --disablerepo PowerTools,Stream-PowerTools --save
> nor this:
> $ dnf config-manager --disablerepo PowerTools Stream-PowerTools --save

Those commands don't do anything because `--disablerepo` is a top level dnf flag that temporarily disables a repo for the duration of the transaction [1].  Combining it with the `--save` flag has no effect.  It is not the same as the config-manager plugin `--disable` flag [2].  That flag does accept a space separated list of repos, or being passed multiple times.

    dnf config-manager --disable PowerTools Stream-PowerTools
    dnf config-manager --disable PowerTools --disable Stream-PowerTools


[0] https://wiki.centos.org/FAQ/CentOSStream#Where_do_I_report_bugs.3F
[1] https://www.mankier.com/8/dnf#--disablerepo
[2] https://www.mankier.com/8/dnf-config-manager#--disable

Comment 16 Fedora Update System 2020-10-27 01:20:42 UTC
FEDORA-2020-b40fc174b5 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.