Bug 1734089
Summary: | DNF removes wrong packages! | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | mohamedjss11 |
Component: | dnf | Assignee: | Jaroslav Mracek <jmracek> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 30 | CC: | bgoncalv, dmach, extras-orphan, igor.raits, jmracek, jrohel, mblaha, mgahagan, mhatina, mmathesi, packaging-team-maint, pkratoch, ppisar, psabata, rpm-software-management, vmukhame |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-05 11:51:06 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
mohamedjss11
2019-07-29 15:07:08 UTC
What's your dnf version you use? Does "dnf autoremove" also want to uninstall them? I guess the offended packages were not explicitly marked as wanted by the user and thus DNF thinks that nobody needs them and offer a cleanup. This is probably bug in the installed (anaconda). If you want some of them to remain on the system, you can mark them so (e.g. "dnf mark install nautilus"). DNF should not try to clean them up since then. I believe that this is not bug. You tried to remove libimobiledevice that is required by evince-nautilus. Evince-nautilus requires nautilus. I suggest that evince-nautilus was installed as a part of group. There is no way how to remove libimobiledevice and keep evince-nautilus. To keep nautilus on your system, just run "dnf mark install nautilus" and nautilus will be not a dependency but use installed package. (In reply to Jaroslav Mracek from comment #3) > I believe that this is not bug. You tried to remove libimobiledevice that is > required by evince-nautilus. Evince-nautilus requires nautilus. I suggest > that evince-nautilus was installed as a part of group. > > There is no way how to remove libimobiledevice and keep evince-nautilus. > To keep nautilus on your system, just run "dnf mark install nautilus" and > nautilus will be not a dependency but use installed package. after rebooting my fedora 30 i found that command removes gnome desktop completely! I reinstalled gnome desktop via "Gnome Desktop Environment" group. (In reply to Petr Pisar from comment #1) > What's your dnf version you use? Does "dnf autoremove" also want to > uninstall them? I guess the offended packages were not explicitly marked as > wanted by the user and thus DNF thinks that nobody needs them and offer a > cleanup. This is probably bug in the installed (anaconda). No "dnf autoremove" don't show these packages listed in "dnf remove libimobiledevice libimobiledevice-utils" (In reply to mohamedjss11 from comment #5) > (In reply to Petr Pisar from comment #1) > > What's your dnf version you use? Does "dnf autoremove" also want to > > uninstall them? I guess the offended packages were not explicitly marked as > > wanted by the user and thus DNF thinks that nobody needs them and offer a > > cleanup. This is probably bug in the installed (anaconda). > > No "dnf autoremove" don't show these packages listed in "dnf remove > libimobiledevice libimobiledevice-utils" That's because: > You tried to remove libimobiledevice that is required by evince-nautilus. Evince-nautilus requires nautilus. Jaroslav and Petr are right. The behavior you described in comment#0 is expected. There's nothing we can fix in DNF. When you install RPMs, they are marked as user-installed. All their dependencies are marked as dependencies and are candidates for auto-removal. In your case, nautilus and other packages were installed as dependencies and can be auto-removed. If you remove a package that requires nautilus, DNF detect that nothing else needs it and removes it as unused dependency. |