Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1254904

Summary: [perf] DNF repository-packages - Slow upgrade
Product: [Fedora] Fedora Reporter: Zee <zeljatux>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tla, vmukhame, zeljatux
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 14:27:35 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 Zee 2015-08-19 08:39:14 UTC
Description of problem:
Command 
dnf -y repository-packages MYREPO upgrade
is VERY SLOW (more than 5mins)

Version-Release number of selected component (if applicable):
Fedora Workstation 22 x86_64 (latest updates)
dnf-1.1.0-2.fc22.noarch


How reproducible:
dnf -y repository-packages MYREPO upgrade

Steps to Reproduce:
1.
2.
3.

Actual results:
Upgrade with DNF takes more than 5 minutes.

Expected results:
Upgrade takes less than minute.

Additional info:
I have problem while trying to update only installed packages from specific repository with dnf.
I use following on Fedora 22 x86_64 with dnf-1.1.0-2.fc22.noarch:

dnf -y repository-packages MYREPO upgrade
Upgrade is successfull, but it takes VERY LONG time to complete (5mins).


If I use following:
dnf -y --disablerepo=\* --enablerepo=MYREPO upgrade

Upgrade fails with:
Skipping packages with broken dependencies:
Because I have one package on MYREPO that requires (have dependency) package from other repo (fedora repo).

Yum command worked fine, but its deprecated.
yum-deprecated -y repository-packages MYREPO update

Earlier version of DNF (maybe few weeks ago), throw these messages while doing upgrade:
Package SOMEPACKAGE1 not installed, cannot update it
Package SOMEPACKAGE2 not installed, cannot update it
Package SOMEPACKAGE3 not installed, cannot update it
Package SOMEPACKAGE4 not installed, cannot update it


I assume that the problem could be in the fact that DNF is trying to update ALL packages from my custom repository MYREPO, but on my PC, I use only few of those packages (have installed just a few packages).

Note: Those custom packages are added while building Fedora ISO with pungi.
Command 
dnf list installed
Lists all installed packages as from repo @System

Comment 1 Honza Silhan 2015-08-31 12:13:21 UTC
please provide the output of "dnf -y repository-packages MYREPO upgrade -v" and point out where DNF stuck.

Comment 2 Honza Silhan 2016-02-10 14:27:35 UTC

*** This bug has been marked as a duplicate of bug 1306304 ***

Comment 3 Red Hat Bugzilla 2023-09-12 00:49:26 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days