Answer the question
In order to leave comments, you need to log in
How to manually indicate that a package was installed as a dependency of another package?
Greetings.
Is it possible to mark package A, which I installed with handles, as a "dependency" on package B, which is already installed on the system? So that when package B is removed, package A is marked as available for auto-removal.
Answer the question
In order to leave comments, you need to log in
If package B has package A in the recommended dependencies, then apt-mark
If it is not specified, then apt-mark will help, but the next autoremove will offer to remove this package.
Alternatively, you can build an empty meta-package that will require A and B for itself. Then, when B is removed, this meta-package will be removed by dependencies, and A will remain useless and will be offered for removal by autoremove.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question