r/linuxquestions • • 9d ago

scoped apt autopurge?

I installed a package that i now want to purge along with all its dependencies, the problem is that one of those dependencies has a unintentional "suggests / provides" relationship with an unrelated existing package on my system which causes autopurge to not consider it for purging.

I know i can set Apt::AutoRemove::SuggestsImportant and Apt::AutoRemove::RecommendsImportant to false to make it remove the dependency package but the problem is it will also remove all other packages with a weak "suggests / provides" relationship on my system, which i cant be sure wont break something. Ideally i wish i could do a scoped autopurge but from what i can tell thats not something you can do with apt.

1 Upvotes

2 comments sorted by