This question already has an answer here:
I have a package I do not want to be installed even if another needs it.
Is there any way to "blacklist" a package from being installed even as a dependency of another?
Can I overcome the fact that it is a dependency and still be able to upgrade my system?
I am thinking in particular about the messaging indicator from Unity. If I remove it and add Unity again for some reason, I dont want the applet installed again. How can I prevent it from being installed? (or the global menu, java versions removing my custom installed one, etc... you get the idea).