Problem:
Hi all. All my Repos are configured with Immediate download policy and Additive mirroring policy and linked to a single Content view.
I know how to delete unused versions, but would like to also clean up older versions of packages in Repos, if this is even possible. I issued the following but noticed that there were no changes to disk usage of Katello, leading me to think that Repos weren’t purged.
Any help would be greatly appreciated.
Expected outcome:
Foreman and Proxy versions:
Foreman 3.4
Foreman and Proxy plugin versions:
Katello 4.6
Distribution and version:
Rocky Linux OS 8.7
Other relevant data:
$ hammer content-view list
CONTENT VIEW ID NAME LABEL COMPOSITE LAST PUBLISHED REPOSITORY IDS 1 Default Organization View Default_Organization_View false 2022/11/09 02:15:54 2 Rocky 8 Content View Rocky_8_Content_View false 2022/12/05 23:31:21 1, 2, 3, 4, 5, 6, 7, 8 $ hammer content-view version list
ID NAME VERSION DESCRIPTION LIFECYCLE ENVIRONMENTS 7 Rocky 8 Content View 6.0 6.0 Library, Development, Stable 6 Rocky 8 Content View 5.0 5.0 5 Rocky 8 Content View 4.0 4.0 4 Rocky 8 Content View 3.0 3.0 3 Rocky 8 Content View 2.0 2.0 2 Rocky 8 Content View 1.0 1.0 1 Default Organization View 1.0 1.0 Library $ hammer content-view purge --id 2 --count 1
$ hammer content-view version list
ID NAME VERSION DESCRIPTION LIFECYCLE ENVIRONMENTS 7 Rocky 8 Content View 6.0 6.0 Library, Development, Stable 6 Rocky 8 Content View 5.0 5.0 1 Default Organization View 1.0 1.0 Library $ hammer content-view version list
ID NAME VERSION DESCRIPTION LIFECYCLE ENVIRONMENTS 7 Rocky 8 Content View 6.0 6.0 Library, Development, Stable 6 Rocky 8 Content View 5.0 5.0 1 Default Organization View 1.0 1.0 Library