Bug 2140347

Summary: flatpak remove --unused does not remove unused packages
Product: [Fedora] Fedora Reporter: Mars <csiterallat>
Component: flatpakAssignee: David King <amigadave>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 36CC: amigadave, debarshir, klember, mail
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-25 15:30:56 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 Mars 2022-11-05 22:50:59 UTC
Description of problem:

flatpak does not remove unused sdk-s?
Or flatpak cant repair manually removed packages?

Version-Release number of selected component (if applicable):

flatpak --version
Flatpak 1.12.7
Fedora 36 Up to date

How reproducible:

*** 1.***

flatpak update 
Looking for updates…
Info: org.freedesktop.Sdk//20.08 is end-of-life, with reason:
   org.freedesktop.Platform 20.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: org.freedesktop.Platform.VAAPI.Intel//20.08 is end-of-life, with reason:
   org.freedesktop.Platform 20.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: org.freedesktop.Platform.GL.default//20.08 is end-of-life, with reason:
   org.freedesktop.Platform 20.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: org.fedoraproject.Platform//f35 is end-of-life, with reason:
   Fedora 35 runtime is no longer supported.
Applications using this runtime:
   org.gnome.FeedReader
Info: org.gnome.FeedReader//stable is end-of-life, with reason:
   No longer maintained upstream


        ID                                                    Branch            Op            Remote             Download
 1. [✓] org.freedesktop.Platform.Compat.i386                  22.08             u             flathub            30,2 MB / 106,2 MB
 2. [✓] org.freedesktop.Platform.GL.default                   22.08             u             flathub            26,7 MB / 131,0 MB
 3. [✓] org.freedesktop.Platform.GL32.default                 22.08             u             flathub            30,0 MB / 138,4 MB
 4. [✓] org.freedesktop.Platform.Locale                       22.08             u             flathub            25,5 kB / 333,0 MB
 5. [✓] org.freedesktop.Platform.VAAPI.Intel.i386             22.08             u             flathub             2,8 kB / 1,9 MB
 6. [✓] org.freedesktop.Platform.VAAPI.Intel                  22.08             u             flathub             2,8 kB / 10,8 MB
 7. [✓] org.freedesktop.Platform.ffmpeg-full                  22.08             u             flathub             3,1 MB / 4,3 MB
 8. [✓] org.freedesktop.Platform                              22.08             u             flathub            38,1 MB / 214,4 MB
 9. [✓] org.freedesktop.Sdk.Locale                            22.08             u             flathub            21,3 kB / 338,7 MB
10. [✓] org.freedesktop.Sdk                                   22.08             u             flathub            38,0 MB / 512,0 MB
Updates complete.

*** 2.***
flatpak uninstall --unused 
Nothing unused to uninstall

*** 3.***

flatpak uninstall org.freedesktop.Sdk//20.08

        ID                                            Branch          Op
 1. [-] org.freedesktop.Sdk                           20.08           r
 2. [-] org.freedesktop.Sdk.Locale                    20.08           r
 3. [-] org.freedesktop.Platform.GL.default           20.08           r
 4. [-] org.freedesktop.Platform.VAAPI.Intel          20.08           r

Uninstall complete.


*** 4.***

flatpak update 
Looking for updates…
Info: org.fedoraproject.Platform//f35 is end-of-life, with reason:
   Fedora 35 runtime is no longer supported.
Applications using this runtime:
   org.gnome.FeedReader
Info: org.gnome.FeedReader//stable is end-of-life, with reason:
   No longer maintained upstream
Nothing to do.

flatpak repair 
Working on the system installation at /var/lib/flatpak
[56/171] Verifying flathub:runtime/org.gimp.GIMP.Manual/x86_64/2.10…
[171/171] Verifying flathub:runtime/org.freedesktop.Platform.GL.nvidia-470-141-03/x86_64/1.4…
Checking remotes...


!!! probably When required package is installed (feedreader) -- the dependency not remove. So I think the uninstall --unused command not remove the dependencies. !!! 

flatpak uninstall org.fedoraproject.Platform//f35

        ID                                 Branch        Op
 1. [✗] org.fedoraproject.Platform         f35           r

Error: Can't remove org.fedoraproject.Platform/x86_64/f35, it is needed for: org.gnome.FeedReader
error: Failed to uninstall org.fedoraproject.Platform: Can't remove org.fedoraproject.Platform/x86_64/f35, it is needed for: org.gnome.FeedReader


Actual results:

flatpak uninstall unused does not remove probably unused packages
Required packages not allow to remove, but I can remove the 20.08 packages, so it is not connected to anything.

Expected results:

remove unused 20.08 packages if doesn't required,

Additional info:

Im usinig: Flathub.
FeedReader comes from Fedora flatpak repo. (I have no problem with FeedReader!)

Comment 1 Ben Cotton 2023-04-25 18:09:49 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Ludek Smid 2023-05-25 15:30:56 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.