[OpenIndiana-discuss] Auto remove of unneeded packages?

Andy Fiddaman andy at omnios.org
Sun Feb 28 15:49:22 UTC 2021


On Thu, 25 Feb 2021, cretin1997 via openindiana-discuss wrote:

; On Debian, after I uninstalled a package, there will be it dependencies that no longer needed still left. This simple command will remove all of them:
;
; apt autoremove
;
; What is the equivalent command for pkg?

As others have said, there is not an equivalent yet. However, OmniOS just
gained support for `pkg list -r` which lists packages that have no dependencies
and could be removed.

https://github.com/omniosorg/pkg5/commit/afdd749e3246ed92d2e574c

It should be relatively straightforward to port to OpenIndiana's `pkg` too.

Adding `pkg autoremove` would be possible but would require more state to
be kept on whether packages were installed manually. That metadata is just
not there at present.

Andy




More information about the openindiana-discuss mailing list