LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   dnf remove repo, dnf command help ? (https://www.linuxquestions.org/questions/fedora-35/dnf-remove-repo-dnf-command-help-4175554905/)

mshlinux 09-30-2015 10:34 AM

dnf remove repo, dnf command help ?
 
my repolis is:
Code:

[msh@localhost ~]$ sudo dnf repolist
[sudo] password for msh:
Last metadata expiration check performed 2 days, 12:10:21 ago on Mon Sep 28 09:41:52 2015.
repo id                    repo name                                      status
*fedora                    Fedora 22 - x86_64                            44,762
ozonos                    Repository for Ozon OS                            61
rpmfusion-free            RPM Fusion for Fedora 22 - Free                  500
rpmfusion-free-updates    RPM Fusion for Fedora 22 - Free - Updates          52
rpmfusion-nonfree          RPM Fusion for Fedora 22 - Nonfree                178
rpmfusion-nonfree-updates  RPM Fusion for Fedora 22 - Nonfree - Updates      32
*updates                  Fedora 22 - x86_64 - Updates                  10,268
[msh@localhost ~]$

how to remove ozonos repo from my system.
I found this page:
https://docs.fedoraproject.org/en-US...ositories.html

It shows Adding, Enabling and Disabling but no Removing.

and how can I check what options or sub command under config-manage command.
I tried these:
Code:

# dnf config-manager help
Code:

# dnf help config-manager
Code:

# dnf config-manager --help
they are useless.

I expect to see like this:
Code:

--add-repo blur blur ...
--set-enabled blur blur ...
--set-disabled blur blur ...

dnf has a lot of advance commands and options but missing simple ones in common sense, I think.

syg00 09-30-2015 09:15 PM

Just delete /etc/yum.repos.d/ozonos.repo - then do a --refresh.
As for config-manager, that looks like a plugin - "man dnf.plugin.config_manager".

Pays to look around.

mshlinux 10-01-2015 10:00 PM

thanks
Code:

$ man dnf.plugin.config_manager
is exactly what I want.

Quote:

Just delete /etc/yum.repos.d/ozonos.repo - then do a --refresh.
actually I already know this.
I just want to know whether dnf has a command to delete /etc/yum.repos.d/ozonos.repo and do --refresh.


All times are GMT -5. The time now is 01:36 AM.