Red Hat Bugzilla – Bug 1209864
The orphans plugin reports things as orphans that aren't
Last modified: 2015-04-27 04:47:17 EDT
Description of problem:
We ask for orphans:
fedora22 [~] % sudo dnf orphans
<...another 587 lines...>
But when we check those packages do exist in configured repositories:
fedora22 [~] % sudo dnf list --showduplicates zsh
Using metadata from Wed Apr 8 11:02:28 2015 (0:53:45 hours old)
zsh.x86_64 5.0.7-6.fc22 @System
zsh.x86_64 5.0.7-6.fc22 @System
zsh.x86_64 5.0.7-6.fc22 fedora-base
Version-Release number of selected component (if applicable):
I think "orphans" is not a good name for that plugin, people expect it to do something else. All it does is 'List installed packages not required by any other package'...
(It does not even look at the userinstalled bit.)
Maybe you wanted to use
dnf list extras
Lists extras, that is packages installed on the system that are not available in any known repository.
Does this solve your use case?
I think the problem is the inconsistent terminology between yum and dnf.
DNF extras are what yum calls orphans.
DNF orphans are what yum calls leaves (leaf packages).
Yes it sounds like extras is what I wanted. I think I just googled "dnf orphans" to find a replacement for "package-cleanup --orphans" and got http://rpm.pbone.net/index.php3/stat/45/idpl/29084811/numer/8/nazwa/dnf.plugin.orphans which doesn't actually say much but seemed like a plausible replacement.
(In reply to Mace Moneta from comment #3)
> I think the problem is the inconsistent terminology between yum and dnf.
> DNF extras are what yum calls orphans.
> DNF orphans are what yum calls leaves (leaf packages).
More precisely, when I was implementing "dnf list extras", I followed "yum list" which calls it "extras" too. So if YUM calls it "orphans" elsewhere, it's more about inconsistency within YUM which we more or less have to inherit in favour of compatibility.
And "dnf orphans" is part of dnf-plugins-extras which is a community project that is not under control of DNF developers so I'd rather say that it's about inconsistency between DNF and dnf-plugins-extras.
But sure, in the end, the user does not care and we should cooperate in order to improve their experience.
I guess yum must have added that, with a different name, as a core feature after package-cleanup already had it. I certainly was aware that "yum list extras" existed and have always used "package-cleanup --orphans".
Radek and Igor, can we agree on renaming orphans plugin and command to 'leaves' - to make it less confusing and more cosistent with yum's naming in use?
I have no strong opinion on that. I am not involved in the plugin. But I guess that "leaves" really sounds better.
dnf-plugins-extras-0.0.7-1.fc22 has been submitted as an update for Fedora 22.
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-extras-0.0.7-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-extras-0.0.7-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.