Bug 1257417 - Can't disable @System repo in dnf
Summary: Can't disable @System repo in dnf
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-27 05:06 UTC by Sitsofe Wheeler
Modified: 2015-09-01 16:01 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-09-01 16:01:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sitsofe Wheeler 2015-08-27 05:06:36 UTC
Description of problem:
When doing yum operations it's not possible to exclude the @System virtual repository.

Version-Release number of selected component (if applicable):
dnf-1.0.1-2.fc22.noarch

How reproducible:
Reproducible every time.

Steps to Reproduce:
1. Do a dnf info on a package that is installed e.g.
dnf info dnf
2. Note that multiple packages are returned.
3. Retry the search with all repositories disabled:
dnf --disablerepo='*' info dnf

Actual results:
Installed Packages
Name        : dnf
Arch        : noarch
Epoch       : 0
Version     : 1.0.1
Release     : 2.fc22
Size        : 714 k
Repo        : @System
From repo   : updates
Summary     : Package manager forked from Yum, using libsolv as a dependency resolver
URL         : https://github.com/rpm-software-management/dnf
License     : GPLv2+ and GPLv2 and GPL
Description : Package manager forked from Yum, using libsolv as a dependency resolver.

Expected results:
No information to be returned.

Additional info:
Trying to do
dnf --disablerepo='@System' info dnf
results in
Error: Unknown repo: '@System'

Comment 1 Honza Silhan 2015-09-01 16:01:23 UTC
DNF always adds installed packages and --(disable/enable)repo control just available repositories. You should rather use `dnf repoquery --available/--installed --info ...`. We don't plan to make a regression.


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