Bug 1259175

Summary: dnf distro-sync unexpectedly removes packages
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
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: 23CC: bruno, johannespfrang, jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen, vmukhame, zbyszek
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-10-19 09:03:59 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 Daniel Mach 2015-09-02 07:01:39 UTC
I updated f22 to f23 by running:
dnf distro-sync --releasever=23

This made rpmfusion repos unavailable, because they do not exist for $releasever 23

dnf knows that some repos are broken and disables them.
dnf distro-sync removes all packages that are not found in repos.

Imagine situation when a server with yum repos has an outage.
dnf disables the repo(s) and distro-sync removes packages.

I'd like dnf not to remove packages by default and introduce an option to allow removing extra packages or re-use --allowerasing.
Using -x option to manually exclude packages from distro-sync doesn't help.

Comment 1 Radek Holy 2015-09-07 11:19:55 UTC
Thank you for the report. The distro-sync way of upgrading Fedora is not supported but considering how often repositories are not available, it might be useful in other cases as well. We'll take a look.

Comment 2 Honza Silhan 2015-10-19 09:03:59 UTC

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