Bug 1257417

Summary: Can't disable @System repo in dnf
Product: [Fedora] Fedora Reporter: Sitsofe Wheeler <sitsofe>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-01 16:01:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.