Bug 1187384

Summary: distribution-logos-openSUSE-icons found in unneeded packages....is this correct
Product: [openSUSE] openSUSE Tumbleweed Reporter: John Shand <jshand2013>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bzeller, igonzalezsosa, jshand2013
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: unneeded packages
y2logs debug info
hwinfo
libzypp information
zypper log file

Description John Shand 2021-06-15 22:09:12 UTC
also this package is not listed under orphaned packages.
Comment 1 John Shand 2021-06-15 22:13:37 UTC
Created attachment 850295 [details]
unneeded packages
Comment 2 Imobach Gonzalez Sosa 2021-06-16 05:33:30 UTC
Hi John,

I am sorry, but I do not get what it is exactly the problem you are trying to report and how it is related to YaST. Could you, please, elaborate a little bit more?

Thanks!
Comment 3 Imobach Gonzalez Sosa 2021-06-16 05:41:02 UTC
Oh, I see now. It is strange, because in my TW system (which is up-to-date) I cannot see that package in the list of unneeded ones. Could you, please, attach YaST logs?

https://en.opensuse.org/openSUSE:Report_a_YaST_bug#Attachments_-_y2logs.2C_hwinfo_etc.

Regards,
Imo
Comment 4 John Shand 2021-06-16 07:00:29 UTC
Created attachment 850299 [details]
y2logs debug info
Comment 5 John Shand 2021-06-16 07:00:59 UTC
Created attachment 850300 [details]
hwinfo
Comment 6 Imobach Gonzalez Sosa 2021-06-16 11:16:56 UTC
Thanks John.

OK, so I guess that we should ask libzypp maintainers, as YaST is getting this list directly from there. In order to give them as much information as possible, could you run the following command, please?

ZYPP_LIBSAT_FULLLOG=1 ZYPP_LOGFILE=zypper.log zypper -vv pa --unneeded

And then attach the output and the generated zypper.log file (you can compress those logs to save some bandwidth and space).

Regards,
Imo
Comment 7 John Shand 2021-06-16 20:58:32 UTC
Created attachment 850329 [details]
libzypp information
Comment 8 John Shand 2021-06-16 21:01:48 UTC
Created attachment 850330 [details]
zypper log file
Comment 9 Imobach Gonzalez Sosa 2021-06-17 05:32:21 UTC
Thank you, John.

@libzypp, with this information, could you explain why is this package reported as unneeded? It does not happen in my system (perhaps my system is the wrong one).

Thanks in advance!
Comment 10 Benjamin Zeller 2021-06-17 08:18:17 UTC
If a package is listed as unneeded its not required/recommended by any other installed package and was not explicitely installed by the user either. 

From what I see its only recommended by patterns-microos-desktop-common, is that 
pattern installed or was it maybe removed?
Comment 11 John Shand 2021-06-17 08:38:54 UTC
(In reply to Benjamin Zeller from comment #10)
> If a package is listed as unneeded its not required/recommended by any other
> installed package and was not explicitely installed by the user either. 
> 
> From what I see its only recommended by patterns-microos-desktop-common, is
> that 
> pattern installed or was it maybe removed?

on my opensuse tumbleweed desktop, i am not using any of the microos features
Comment 12 John Shand 2021-06-17 08:40:17 UTC
(In reply to John Shand from comment #11)
> (In reply to Benjamin Zeller from comment #10)
> > If a package is listed as unneeded its not required/recommended by any other
> > installed package and was not explicitely installed by the user either. 
> > 
> > From what I see its only recommended by patterns-microos-desktop-common, is
> > that 
> > pattern installed or was it maybe removed?
> 
> on my opensuse tumbleweed desktop, i am not using any of the microos features

i also have the option for install recommended turned off in yast.  i have verity system turned on
Comment 13 Benjamin Zeller 2021-06-17 08:45:44 UTC
(In reply to John Shand from comment #11)
> (In reply to Benjamin Zeller from comment #10)
> > If a package is listed as unneeded its not required/recommended by any other
> > installed package and was not explicitely installed by the user either. 
> > 
> > From what I see its only recommended by patterns-microos-desktop-common, is
> > that 
> > pattern installed or was it maybe removed?
> 
> on my opensuse tumbleweed desktop, i am not using any of the microos features

With 
> zypper se --requires-pkg distribution-logos-openSUSE-icons
you can check which packages require distribution-logos-openSUSE-icons, 
for me this is the result:

> S | Name                           | Summary                    | Type
> --+--------------------------------+----------------------------+--------
>   | patterns-microos-desktop-gnome | MicroOS GNOME Desktop      | package
>   | patterns-microos-desktop-kde   | MicroOS KDE Plasma Desktop | package

With 
> sudo grep distribution-logos-openSUSE-icons /var/log/zypp/history
you can see when the package was installed for you though.
Comment 14 John Shand 2021-06-17 09:16:18 UTC
zypper se --requires-pkg distribution-logos-openSUSE-icons command details:

S | Name                            | Summary                                 | Type
--+---------------------------------+-----------------------------------------+--------
  | patterns-microos-desktop-common | Common packages for Desktops on MicroOS | package

the grep command:

2021-06-13 16:28:05|install|distribution-logos-openSUSE-icons|20201117-3.1|noarch||repo-oss|59fb90a9f4661841ad2e00e2768c6f519fbb69add0de2d4ca74ade314b2b9e3b
Comment 15 Benjamin Zeller 2021-06-17 09:33:07 UTC
(In reply to John Shand from comment #14)
> zypper se --requires-pkg distribution-logos-openSUSE-icons command details:
> 
> S | Name                            | Summary                               
> | Type
> --+---------------------------------+----------------------------------------
> -+--------
>   | patterns-microos-desktop-common | Common packages for Desktops on
> MicroOS | package
> 
> the grep command:
> 
> 2021-06-13
> 16:28:05|install|distribution-logos-openSUSE-icons|20201117-3.1|noarch||repo-
> oss|59fb90a9f4661841ad2e00e2768c6f519fbb69add0de2d4ca74ade314b2b9e3b

Right, so when you open up the history file and scroll upwards from that line you should see a entry that is named "command" instead of "install" , thats the zypper command that pulled in the package. 

Its possible that it was pulled in by a dependency which was removed by now, hence making it "unneeded". So this is not a zypper bug.
Comment 16 John Shand 2021-06-17 09:55:40 UTC
thanks for your help guys.  i have now deleted the package in question, restarted the computer.  no problems at all.

sorry for wasting time
Comment 17 Imobach Gonzalez Sosa 2021-06-17 14:50:49 UTC
Hi all,

John, no problem! Thanks Benjamin for your help. It is good that it has been clarified.

Regards,
Imo