Comment 4 for bug 1995790

Revision history for this message
Julian Andres Klode (juliank) wrote (last edit ): Re: ?garbage does not work correctly in install commands

I can confirm that ?garbage does not work correctly in install commands (install, remove, purge, etc). Presumably the pattern is evaluated while an action group is preventing the cache from updating the garbage state and hence it evaluates to nothing.

I can confirm that this works in focal but not in jammy, with those test cases:

podman run --rm -it ubuntu:focal bash -c "apt update && apt install hello && apt-mark auto hello && apt remove ?garbage -y"
podman run --rm -it ubuntu:jammy bash -c "apt update && apt install hello && apt-mark auto hello && apt remove ?garbage -y"

Not sure when it regressed