Bug 1216179

Summary: package-cleanup --orphans is dysfunctional
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: yum-utilsAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: admiller, jsilhan, l4coa3fnjplr, mluscon, mmraka, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
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-06-08 07:53:31 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 Ralf Corsepius 2015-04-28 17:01:03 UTC
Description of problem:

With fc22, package-clean --orphans gives completely broken results, without dnf providing a substitute command:

e.g. 

# package-cleanup --orphans
...
ProjectX-0.91.0-6.fc21.x86_64
...

However, this package definitely is present in a local repository.

dnf repoquery seems to confirm this:
# dnf repoquery ProjectX
...
ProjectX-0:0.91.0-6.fc21.x86_64
...

# rpm -q ProjectX
ProjectX-0.91.0-6.fc21.x86_6

Version-Release number of selected component (if applicable):
dnf-0.6.5-1.fc22.noarch

How reproducible:
No idea. I see all packages which have been installed from a local repository (using dnf) reported as "orphans".

Expected results:
Correct results or dnf to provide a functional replacement for package-cleanup.

Additional info:
package-cleanup (esp. --orphans) used to be one of the most important package management commands when Fedora was using yum. Particularly important after dist-upgrades. Since dnf was made default in Fedora, package-cleanup is unusable => yet another usability regression caused by dnf.

Comment 1 Michael Mráka 2015-04-29 07:12:56 UTC
Hello Ralf,

 dnf list extras 

is what you are looking for.

Comment 2 Ralf Corsepius 2015-04-29 14:39:16 UTC
(In reply to Michael Mráka from comment #1)
>  dnf list extras 
> 
> is what you are looking for.
Thanks for your reply. This is indeed what I was looking for.

But ... WTH was this called "list extras"? People who have been using Fedora are used to this kind of packages being called "orphans" and not "extras".
"orphans" has an implicit meaning, "extras" doesn't. 

Please consider to change this "extras" into "orphans".

Comment 3 Radek Holy 2015-04-29 14:46:05 UTC
(In reply to Ralf Corsepius from comment #2)
> But ... WTH was this called "list extras"?

man yum

Comment 4 Ralf Corsepius 2015-04-29 15:19:37 UTC
(In reply to Radek Holy from comment #3)
> (In reply to Ralf Corsepius from comment #2)
> > But ... WTH was this called "list extras"?
> 
> man yum

Sigh, one of these unused options, likely no experienced user ever used. Also more evidence of the dnf-team lacking experience with Fedora 

Yes, it's not a secrect, that I am really pissed by this low quality dreck.

Comment 5 Tim Lauridsen 2015-04-29 15:55:40 UTC
(In reply to Ralf Corsepius from comment #4)
> (In reply to Radek Holy from comment #3)
> > (In reply to Ralf Corsepius from comment #2)
> > > But ... WTH was this called "list extras"?
> > 
> > man yum
> 
> Sigh, one of these unused options, likely no experienced user ever used.
> Also more evidence of the dnf-team lacking experience with Fedora 
> 
> Yes, it's not a secrect, that I am really pissed by this low quality dreck.

It is called extras be cause it is extras packages on the system, not available in the repositories. It has always be called extras in yum.

Comment 6 Neil 2015-06-07 22:53:48 UTC
[root@infinity duff]# package-cleanup --orphans 

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


Complementos cargados:langpacks
kernel-4.0.4-202.fc21.x86_64
kernel-core-4.0.4-202.fc21.x86_64
kernel-devel-4.0.4-202.fc21.x86_64
kernel-modules-4.0.4-202.fc21.x86_64
kernel-modules-extra-4.0.4-202.fc21.x86_64

Comment 7 Michael Mráka 2015-06-08 07:53:31 UTC
 package-cleanup --orphans

has been replaced with

 dnf list extras