[Bug 864198] New: Showing or deleting unneeded dependencies not possible
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c0 Summary: Showing or deleting unneeded dependencies not possible Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: joshua.kraemer@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.16 It is requested for a long time to be able to show and delete unneeded dependencies, which is possible in other package managers (e.g. apt and yum). Unneeded means: not needed by installed packages and not explicitly installed by the user. It is therefor needed to track which packages are installed explicitly by the user and which are automatically installed as dependencies. Both the feature to show and the feature to remove unneeded packages are marked as "Done" in openFATE: https://features.opensuse.org/300758 https://features.opensuse.org/309577 However, neither works. The package group "Unneeded packages" in YaST shows also explicitly installed packages. And there is also no command available to delete unneeded packages. "zypper remove --clean deps", as suggested on openFATE, is not a valid command. Reproducible: Always Steps to Reproduce: 1. Install a package (e.g. mplayer). 2. Install a package that depends on the previously installed package (e.g. smplayer), including all additionally necessary dependencies. 3. Remove the second package (smplayer). Actual Results: There is no way to show and remove all automatically installed dependencies that are no longer needed. Expected Results: There should be a way to show and remove all automatically installed dependencies that are no longer needed. In the example above, it should be possible to show/remove the additionally, automatically installed dependencies of smplayer, but keep mplayer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c1 --- Comment #1 from Michael Andres <ma@suse.com> 2014-02-17 13:36:17 CET --- 'zypper rm --clean-deps smplayer' would have removed smplayer together with it's automatic dependencies. 'zypper packages --unneeded' lists unneeded packages (though the output looks a bit weird as it also lists uninstalled packages, which does not make sense here). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c2 --- Comment #2 from Joshua Krämer <joshua.kraemer@gmail.com> 2014-02-19 14:30:34 UTC --- Indeed, "zypper rm --clean-deps smplayer" seems to work, I must have made a mistake when testing this before. However, "zypper packages --unneeded" does not work as expected. It shows packages like "grub" and "xorg-x11", which definitely can't be considered unneeded. Additionally, there is an "unneeded" package group in YaST's Qt interface (which seems to show the same packages as "zypper packages --unneeded"), but it's missing in the GTK and Ncurses interfaces. By the way: While the openSUSE 13.1 features page (http://en.opensuse.org/Features) only says: "Zypper 1.9 brings a number of bugfixes but no new features.", the "--unneeded" option seems to be new, because it is not a known option on my 12.3 system. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c3 --- Comment #3 from Michael Andres <ma@suse.com> 2014-02-19 16:31:28 CET ---
However, "zypper packages --unneeded" does not work as expected. It shows packages like "grub" and "xorg-x11", which definitely can't be considered unneeded.
Yes. But due to the way we currently use patterns during installation, too many packages are automatically selected by the resolver, thus potential candidates for cleanup. We need to solve our pattern issues before we can improve the cleanup. Maybe 13.2. will behave better.
"Zypper 1.9 brings a number of bugfixes but no new features."
Maybe the author considered this missing option to be bug, rather than a new feature. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c4 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|zypp-maintainers@forge.prov |gs@suse.com |o.novell.com | --- Comment #4 from Michael Andres <ma@suse.com> 2014-02-19 16:33:33 CET ---
Additionally, there is an "unneeded" package group in YaST's Qt interface (which seems to show the same packages as "zypper packages --unneeded"), but it's missing in the GTK and Ncurses interfaces.
@Gabi: Maybe you can enhance the ncurses interface, if the group is missing. Please add also the GTK maintainer to this bug. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c6 Gabriele Mohr <gs@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|gs@suse.com |zypp-maintainers@forge.prov | |o.novell.com --- Comment #6 from Gabriele Mohr <gs@suse.com> 2014-02-20 08:25:11 UTC --- The text mode package installation shows unneeded packages (as well as recommended, suggested and orphaned) in menu 'Filter' - 'Package Classification'. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c7 --- Comment #7 from Michael Andres <ma@suse.com> 2014-02-20 23:38:14 CET --- So we can close it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c8 --- Comment #8 from Joshua Krämer <joshua.kraemer@gmail.com> 2014-02-21 14:34:46 UTC --- In my opinion, no. Indeed the group is there in text YaST, I just couldn't find it (it's sometimes hard to realize what is a heading, what is a button etc. in Ncurses ...), but still, it's missing in the GTK interface. Despite that, the bug is still valid because the feature to show unneeded packages (by "zypper packages --unneeded" or by YaST) is not working correctly (be it because of pattern handling or for whatever different reasons). And the second point about removing unneeded packages after having removed a dependent package is also still valid. https://features.opensuse.org/309577 is marked as done, also I can't find a feature like "apt-get autoremove" in openSUSE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c9 --- Comment #9 from Joshua Krämer <joshua.kraemer@gmail.com> 2014-02-21 14:40:29 UTC --- Sorry, I meant to write: https://features.opensuse.org/309577 is marked as done, *but* I can't find a feature like "apt-get autoremove" in openSUSE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864198 https://bugzilla.novell.com/show_bug.cgi?id=864198#c10 --- Comment #10 from Swamp Workflow Management <swamp@suse.de> 2014-03-17 11:05:05 UTC --- openSUSE-RU-2014:0385-1: An update that has three recommended fixes can now be installed. Category: recommended (moderate) Bug References: 756195,828764,864198 CVE References: Sources used: openSUSE 13.1 (src): libsolv-0.4.1-5.1, libzypp-13.9.0-13.1, zypper-1.9.12-16.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com