Bug 1259175 - dnf distro-sync unexpectedly removes packages
Summary: dnf distro-sync unexpectedly removes packages
Keywords:
Status: CLOSED DUPLICATE of bug 1244175
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-02 07:01 UTC by Daniel Mach
Modified: 2015-10-19 09:03 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-10-19 09:03:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1244175 0 unspecified CLOSED distro-sync removes orphaned packages in certain cases (kernel update) 2021-02-22 00:41:40 UTC

Internal Links: 1244175

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 ***


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