apt-cyg icon indicating copy to clipboard operation
apt-cyg copied to clipboard

Removing orphaned auto-packages

Open dgasaway opened this issue 1 year ago • 1 comments

Hi. I was wondering if apt-cyg has a way to assist with removing unneeded packages -- packages installed automatically for which all dependent packages installed manually have been removed. I saw the item on the todo list that says "Support dependency check for remove subcommand." but I wasn't sure if that was referring to this or to disallowing removal of a package which is still needed. Is there at least a way to tell apt-cyg to list the unneeded packages which could be fed to apt-cyg remove? Thanks

dgasaway avatar Apr 27 '23 18:04 dgasaway

I made some subcommands to find packages that are no longer needed. You can try it on issue-97 branch.

ex)

# List orphaned packages
apt-cyg list-orphaned-packages
# Remove orphaned packages
apt-cyg remove $(apt-cyg list-orphaned-packages)

kou1okada avatar Apr 28 '23 17:04 kou1okada